Function at 0x4ae5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5aebf0
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
cmp esi, 1
push edi
jne 0x4ae5e1
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x61960c
call dword [eax + 0x90]
jmp 0x4af0bb
cmp esi, 2
jne 0x4ae602
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x6197cc
call dword [eax + 0x90]
jmp 0x4af0bb
or ebx, 0xffffffff
cmp esi, ebx
jne 0x4ae7e2
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
inc ecx
mov eax, dword [edi]
push ecx
push str.PLEASE_AV_FIRST
mov ecx, edi
call dword [eax + 0x90]
mov eax, dword [0x637770]
xor ebp, ebp
cmp eax, ebp
je 0x4ae692
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4ae692
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x78]
push str.PLEASE_AV_FIRST
push str._IF_
push ebp
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4ae6de
push str.PLEASE_AV_FIRST
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
mov dword [esp + 0x50], ebp
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov dword [esp + 0x4c], ebx
call fcn.00401160
mov eax, dword [0x631fd0]
cmp eax, ebp
je 0x4af0bb
cmp dword [eax + 0x50], ebp
jle 0x4af0bb
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4ae7d1
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4ae7d1
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4ae7cc
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4ae7cc
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x40], 1
mov eax, dword [edx - 8]
test eax, eax
je 0x4ae7bb
mov al, byte [esi + 0x80]
test al, al
jne 0x4ae7bb
mov eax, dword [edi + 0x78]
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x4ae7bb
push str.PLEASE_AV_FIRST
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x4c], 1
call fcn.00402500
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4ae6fa
jmp 0x4af0bb
cmp esi, 0xfffffffe
jne 0x4ae803
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x6197b0
call dword [eax + 0x90]
jmp 0x4af0bb
cmp esi, 0xfffffffd
jne 0x4ae824
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x619790
call dword [eax + 0x90]
jmp 0x4af0bb
cmp esi, 0xfffffff6
jg 0x4aea26
cmp esi, 0xffffffec
jle 0x4aea26
neg esi
push esi
lea eax, [esp + 0x1c]
push str.SCH_NBR__d_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x637770]
mov edi, dword [esp + 0x58]
add esp, 0xc
test eax, eax
je 0x4ae8bb
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4ae8bb
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x78]
lea ecx, [esp + 0x18]
push ecx
push str._IF_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4ae90b
lea edx, [esp + 0x18]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [edi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x50], 3
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov dword [esp + 0x4c], ebx
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4aea0c
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4aea0c
mov ebx, 4
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4aea00
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4aea00
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4ae9fb
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4ae9fb
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x40], ebx
mov eax, dword [edx - 8]
test eax, eax
je 0x4ae9ea
mov al, byte [esi + 0x80]
test al, al
jne 0x4ae9ea
mov eax, dword [edi + 0x78]
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4ae9ea
lea ecx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x4c], bl
call fcn.00402500
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4ae92a
mov ecx, dword [esp + 0x50]
mov eax, dword [edi]
inc ecx
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
call dword [eax + 0x90]
jmp 0x4af0bb
cmp esi, 0xffffffe7
jne 0x4aec1c
lea eax, [esp + 0x18]
push 0x619764
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x637770]
mov edi, dword [esp + 0x54]
add esp, 8
test eax, eax
je 0x4aeab1
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4aeab1
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x78]
lea ecx, [esp + 0x18]
push ecx
push str._IF_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4aeb01
lea edx, [esp + 0x18]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [edi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov dword [esp + 0x4c], ebx
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4aec02
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4aec02
mov ebx, 7
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4aebf6
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4aebf6
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4aebf1
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4aebf1
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x40], ebx
mov eax, dword [edx - 8]
test eax, eax
je 0x4aebe0
mov al, byte [esi + 0x80]
test al, al
jne 0x4aebe0
mov eax, dword [edi + 0x78]
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4aebe0
lea ecx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x50], 8
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x4c], bl
call fcn.00402500
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4aeb20
mov ecx, dword [esp + 0x50]
mov eax, dword [edi]
inc ecx
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
call dword [eax + 0x90]
jmp 0x4af0bb
cmp esi, 0xffffffe6
jne 0x4aee12
lea eax, [esp + 0x18]
push 0x619744
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x637770]
mov edi, dword [esp + 0x54]
add esp, 8
test eax, eax
je 0x4aeca7
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4aeca7
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x78]
lea ecx, [esp + 0x18]
push ecx
push str._IF_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4aecf7
lea edx, [esp + 0x18]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [edi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x50], 9
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov dword [esp + 0x4c], ebx
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4aedf8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4aedf8
mov ebx, 0xa
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4aedec
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4aedec
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4aede7
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4aede7
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x40], ebx
mov eax, dword [edx - 8]
test eax, eax
je 0x4aedd6
mov al, byte [esi + 0x80]
test al, al
jne 0x4aedd6
mov eax, dword [edi + 0x78]
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4aedd6
lea ecx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x50], 0xb
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x4c], bl
call fcn.00402500
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4aed16
mov ecx, dword [esp + 0x50]
mov eax, dword [edi]
inc ecx
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
call dword [eax + 0x90]
jmp 0x4af0bb
cmp esi, 0xffffffe5
jne 0x4aee33
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x61970c
call dword [eax + 0x90]
jmp 0x4af0bb
cmp esi, 0xffffffe4
jne 0x4aee54
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x619404
call dword [eax + 0x90]
jmp 0x4af0bb
cmp esi, 0xffffffe3
jne 0x4aee75
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x6193ec
call dword [eax + 0x90]
jmp 0x4af0bb
cmp esi, 0xffffffe2
jne 0x4aee96
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x6193cc
call dword [eax + 0x90]
jmp 0x4af0bb
cmp esi, 0xffffffe1
jne 0x4aeeb7
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x6193bc
call dword [eax + 0x90]
jmp 0x4af0bb
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString_1
neg esi
push esi
lea eax, [esp + 0x4c]
push str.SCH_NBR__d__
push eax
mov dword [esp + 0x4c], 0xc
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x637770]
mov edi, dword [esp + 0x58]
add esp, 0xc
test eax, eax
je 0x4aef4c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4aef4c
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 0x78]
push ecx
push str._IF_
push 0
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c540
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4aef9a
mov edx, dword [esp + 0x48]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [edi + 0x78]
push ecx
add eax, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x50], 0xd
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x631fc8]
mov byte [esp + 0x4c], 0xc
call fcn.00401160
mov eax, dword [0x631fd0]
test eax, eax
je 0x4af095
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4af095
mov bl, 0xe
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4af089
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4af089
call fcn.0044c540
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4af084
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4af084
mov ecx, dword [edi + 0x78]
add ecx, 0x3c
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x10]
mov byte [esp + 0x40], bl
mov eax, dword [edx - 8]
test eax, eax
je 0x4af076
mov al, byte [esi + 0x80]
test al, al
jne 0x4af076
mov eax, dword [edi + 0x78]
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + 0x3c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4af076
mov ecx, dword [esp + 0x48]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str._IF_
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [edi + 0x78]
push ecx
add edx, 0x3c
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x50], 0xf
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x4c], bl
call fcn.00402500
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 0xc
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x631fd0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4aefb6
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov eax, dword [edi]
inc ecx
push ecx
push edx
mov ecx, edi
call dword [eax + 0x90]
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret 0xc