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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ad360
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 0x4aeae1
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x6178bc
call dword [eax + 0x90]
jmp 0x4af5bb
cmp esi, 2
jne 0x4aeb02
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x617a7c
call dword [eax + 0x90]
jmp 0x4af5bb
or ebx, 0xffffffff
cmp esi, ebx
jne 0x4aece2
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 [0x635490]
xor ebp, ebp
cmp eax, ebp
je 0x4aeb92
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4aeb92
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 [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
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 0x4aebde
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 [0x62fce8]
mov dword [esp + 0x4c], ebx
call fcn.00401140
mov eax, dword [0x62fcf0]
cmp eax, ebp
je 0x4af5bb
cmp dword [eax + 0x50], ebp
jle 0x4af5bb
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4aecd1
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4aecd1
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4aeccc
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4aeccc
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 0x4aecbb
mov al, byte [esi + 0x80]
test al, al
jne 0x4aecbb
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 0x4aecbb
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 [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4aebfa
jmp 0x4af5bb
cmp esi, 0xfffffffe
jne 0x4aed03
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x617a60
call dword [eax + 0x90]
jmp 0x4af5bb
cmp esi, 0xfffffffd
jne 0x4aed24
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x617a40
call dword [eax + 0x90]
jmp 0x4af5bb
cmp esi, 0xfffffff6
jg 0x4aef26
cmp esi, 0xffffffec
jle 0x4aef26
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 [0x635490]
mov edi, dword [esp + 0x58]
add esp, 0xc
test eax, eax
je 0x4aedbb
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4aedbb
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 [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
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 0x4aee0b
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 [0x62fce8]
mov dword [esp + 0x4c], ebx
call fcn.00401140
mov eax, dword [0x62fcf0]
test eax, eax
je 0x4aef0c
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4aef0c
mov ebx, 4
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4aef00
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4aef00
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4aeefb
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4aeefb
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 0x4aeeea
mov al, byte [esi + 0x80]
test al, al
jne 0x4aeeea
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 0x4aeeea
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 [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4aee2a
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 0x4af5bb
cmp esi, 0xffffffe7
jne 0x4af11c
lea eax, [esp + 0x18]
push 0x617a14
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x635490]
mov edi, dword [esp + 0x54]
add esp, 8
test eax, eax
je 0x4aefb1
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4aefb1
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 [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
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 0x4af001
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 [0x62fce8]
mov dword [esp + 0x4c], ebx
call fcn.00401140
mov eax, dword [0x62fcf0]
test eax, eax
je 0x4af102
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4af102
mov ebx, 7
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4af0f6
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4af0f6
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4af0f1
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4af0f1
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 0x4af0e0
mov al, byte [esi + 0x80]
test al, al
jne 0x4af0e0
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 0x4af0e0
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 [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4af020
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 0x4af5bb
cmp esi, 0xffffffe6
jne 0x4af312
lea eax, [esp + 0x18]
push 0x6179f4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x635490]
mov edi, dword [esp + 0x54]
add esp, 8
test eax, eax
je 0x4af1a7
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4af1a7
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 [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
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 0x4af1f7
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 [0x62fce8]
mov dword [esp + 0x4c], ebx
call fcn.00401140
mov eax, dword [0x62fcf0]
test eax, eax
je 0x4af2f8
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4af2f8
mov ebx, 0xa
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4af2ec
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4af2ec
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4af2e7
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4af2e7
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 0x4af2d6
mov al, byte [esi + 0x80]
test al, al
jne 0x4af2d6
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 0x4af2d6
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 [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4af216
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 0x4af5bb
cmp esi, 0xffffffe5
jne 0x4af333
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x6179bc
call dword [eax + 0x90]
jmp 0x4af5bb
cmp esi, 0xffffffe4
jne 0x4af354
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x6176b4
call dword [eax + 0x90]
jmp 0x4af5bb
cmp esi, 0xffffffe3
jne 0x4af375
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x61769c
call dword [eax + 0x90]
jmp 0x4af5bb
cmp esi, 0xffffffe2
jne 0x4af396
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edx
mov eax, dword [ecx]
push edx
push 0x61767c
call dword [eax + 0x90]
jmp 0x4af5bb
cmp esi, 0xffffffe1
jne 0x4af3b7
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 0x4af5bb
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 [0x635490]
mov edi, dword [esp + 0x58]
add esp, 0xc
test eax, eax
je 0x4af44c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x4af44c
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 [0x635490]
push str.command
push str.esms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
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 0x4af49a
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 [0x62fce8]
mov byte [esp + 0x4c], 0xc
call fcn.00401140
mov eax, dword [0x62fcf0]
test eax, eax
je 0x4af595
mov ecx, dword [eax + 0x50]
xor ebp, ebp
test ecx, ecx
jle 0x4af595
mov bl, 0xe
mov ecx, dword [eax + 0x4c]
mov esi, dword [ecx + ebp*4]
test esi, esi
je 0x4af589
mov cl, byte [esi + 0x88]
test cl, cl
je 0x4af589
call fcn.0044c560
mov edx, dword [eax + 0xd0]
mov al, byte [edx + 2]
test al, al
je 0x4af584
mov eax, dword [esi + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4af584
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 0x4af576
mov al, byte [esi + 0x80]
test al, al
jne 0x4af576
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 0x4af576
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 [0x62fcf0]
mov ecx, dword [eax + 0x50]
inc ebp
cmp ebp, ecx
jl 0x4af4b6
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