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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5acf80
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 0x4ae8c1
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x6178ac
call dword [eax + 0x90]
jmp 0x4af39b
cmp esi, 2
jne 0x4ae8e2
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x617a6c
call dword [eax + 0x90]
jmp 0x4af39b
or ebx, 0xffffffff
cmp esi, ebx
jne 0x4aeac2
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 [0x635400]
xor ebp, ebp
cmp eax, ebp
je 0x4ae972
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4ae972
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4ae9be
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 [0x62fc58]
mov dword [esp + 0x4c], ebx
call fcn.00401140
mov eax, dword [0x62fc60]
cmp eax, ebp
je 0x4af39b
cmp dword [eax + 0x50], ebp
jle 0x4af39b
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4aeab1
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4aeab1
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4aeaac
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4aeaac
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 0x4aea9b
mov al, byte [esi + 0x80]
test al, al
jne 0x4aea9b
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 0x4aea9b
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.004024b0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4ae9da
jmp 0x4af39b
cmp esi, 0xfffffffe
jne 0x4aeae3
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x617a50
call dword [eax + 0x90]
jmp 0x4af39b
cmp esi, 0xfffffffd
jne 0x4aeb04
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x617a30
call dword [eax + 0x90]
jmp 0x4af39b
cmp esi, 0xfffffff6
jg 0x4aed06
cmp esi, 0xffffffec
jle 0x4aed06
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 [0x635400]
mov edi, dword [esp + 0x58]
add esp, 0xc
test eax, eax
je 0x4aeb9b
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4aeb9b
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4aebeb
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 [0x62fc58]
mov dword [esp + 0x4c], ebx
call fcn.00401140
mov eax, dword [0x62fc60]
test eax, eax
je 0x4aecec
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4aecec
mov ebx, 4
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4aece0
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4aece0
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4aecdb
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4aecdb
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 0x4aecca
mov al, byte [esi + 0x80]
test al, al
jne 0x4aecca
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 0x4aecca
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.004024b0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4aec0a
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 0x4af39b
cmp esi, 0xffffffe7
jne 0x4aeefc
lea eax, [esp + 0x18]
push 0x617a04
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x635400]
mov edi, dword [esp + 0x54]
add esp, 8
test eax, eax
je 0x4aed91
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4aed91
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4aede1
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 [0x62fc58]
mov dword [esp + 0x4c], ebx
call fcn.00401140
mov eax, dword [0x62fc60]
test eax, eax
je 0x4aeee2
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4aeee2
mov ebx, 7
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4aeed6
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4aeed6
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4aeed1
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4aeed1
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 0x4aeec0
mov al, byte [esi + 0x80]
test al, al
jne 0x4aeec0
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 0x4aeec0
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.004024b0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4aee00
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 0x4af39b
cmp esi, 0xffffffe6
jne 0x4af0f2
lea eax, [esp + 0x18]
push 0x6179e4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x635400]
mov edi, dword [esp + 0x54]
add esp, 8
test eax, eax
je 0x4aef87
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4aef87
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4aefd7
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 [0x62fc58]
mov dword [esp + 0x4c], ebx
call fcn.00401140
mov eax, dword [0x62fc60]
test eax, eax
je 0x4af0d8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4af0d8
mov ebx, 0xa
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4af0cc
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4af0cc
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4af0c7
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4af0c7
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 0x4af0b6
mov al, byte [esi + 0x80]
test al, al
jne 0x4af0b6
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 0x4af0b6
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.004024b0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4aeff6
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 0x4af39b
cmp esi, 0xffffffe5
jne 0x4af113
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x6179ac
call dword [eax + 0x90]
jmp 0x4af39b
cmp esi, 0xffffffe4
jne 0x4af134
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x6176a4
call dword [eax + 0x90]
jmp 0x4af39b
cmp esi, 0xffffffe3
jne 0x4af155
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x61768c
call dword [eax + 0x90]
jmp 0x4af39b
cmp esi, 0xffffffe2
jne 0x4af176
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x61766c
call dword [eax + 0x90]
jmp 0x4af39b
cmp esi, 0xffffffe1
jne 0x4af197
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x61765c
call dword [eax + 0x90]
jmp 0x4af39b
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 [0x635400]
mov edi, dword [esp + 0x58]
add esp, 0xc
test eax, eax
je 0x4af22c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4af22c
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 [0x635400]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb7d0
mov edx, dword [0x635400]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
call fcn.0044c560
mov ecx, dword [eax + 0xd0]
cmp byte [ecx], 0
je 0x4af27a
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 [0x62fc58]
mov byte [esp + 0x4c], 0xc
call fcn.00401140
mov eax, dword [0x62fc60]
test eax, eax
je 0x4af375
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4af375
mov bl, 0xe
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4af369
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4af369
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4af364
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4af364
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 0x4af356
mov al, byte [esi + 0x80]
test al, al
jne 0x4af356
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 0x4af356
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.004024b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 0xc
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x62fc60]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4af296
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