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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x4afe28
sub esp, 0x88
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea eax, [0x4c65e0]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x84], eax
test byte [eax], al
mov dword [esp], eax
lea ecx, [esp + 0x80]
mov dword [esp + 4], ecx
call fcn.0049f210
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x7c], esi
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
test edx, edx
je 0x4afb45
test ebx, ebx
je 0x4afb3f
lea ecx, [0x7ecee0]
cmp ecx, eax
jne 0x4afb39
mov dword [esp + 0x78], esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x4c], ebx
nop
lea eax, [0x7312e0]
mov dword [esp], eax
call fcn.0040bc50
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x4c]
mov dword [edi + 4], eax
mov eax, dword [0x9f0ee0]
test eax, eax
jne 0x4afb2e
mov ecx, dword [esp + 0x78]
mov dword [edi], ecx
mov ecx, dword [esp + 0x74]
mov dword [edi + 8], ecx
mov ecx, dword [0x9f0ee0]
test ecx, ecx
jne 0x4afb18
mov eax, dword [esp + 0x6c]
mov dword [edi + 0xc], eax
lea eax, [0x7ec940]
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edi
add esp, 0x88
ret
lea ecx, [edi + 0xc]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x6c]
call fcn.0045f470
mov edi, edx
jmp 0x4afaf2
mov eax, dword [esp + 0x78]
call fcn.0045f470
jmp 0x4afada
mov eax, edx
mov edi, ebp
jmp 0x4afaf8
mov eax, edx
mov edi, ebp
jmp 0x4afaf8
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x8c]
mov edx, dword [eax + 0x134]
mov dword [esp + 0x48], edx
mov ebx, dword [eax + 0x138]
mov dword [esp + 0x34], ebx
mov ebp, dword [eax + 0x140]
mov dword [esp + 0x5c], ebp
mov esi, dword [eax + 0x144]
mov dword [esp + 0x40], esi
cmp ebx, 2
je 0x4afe19
cmp ebx, 3
setne al
mov byte [esp + 0x2f], al
lea ecx, [0x749e20]
mov dword [esp], ecx
call fcn.0040bc50
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 1
sete dl
mov byte [eax + 0x12d], dl
movzx edx, byte [esp + 0x2f]
mov byte [eax + 0x12e], dl
mov edx, dword [esp + 0x48]
mov dword [eax + 0x134], edx
mov dword [eax + 0x138], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x144], ecx
mov ecx, dword [0x9f0ee0]
test ecx, ecx
jne 0x4afe01
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x140], ecx
mov dword [esp + 0x58], eax
mov dword [esp], eax
call fcn.004aef70
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x4afdc2
mov dword [esp + 0x64], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jbe 0x4afe20
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.004736c0
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.0046f430
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 4]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x60], edx
mov dword [esp], eax
call fcn.0046f430
mov eax, dword [esp + 4]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x58]
mov dword [esp], edx
call fcn.004bc800
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x58]
mov dword [esp], edx
call fcn.004bc800
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x58]
mov dword [ebx + 0x148], edx
mov edx, dword [0x9f0ee0]
test edx, edx
jne 0x4afdaa
mov edx, dword [esp + 0x68]
mov dword [ebx + 0x14c], edx
mov dword [ebx + 0x150], ecx
mov ecx, dword [0x9f0ee0]
test ecx, ecx
jne 0x4afd9d
mov dword [ebx + 0x154], eax
lea eax, [0x75d240]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x711a20]
mov dword [esp + 8], eax
lea eax, [0x78a614]
mov dword [esp + 0xc], eax
call fcn.00415c30
mov eax, dword [esp + 0x58]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x88
ret
lea edi, [ebx + 0x154]
call fcn.0045f470
jmp 0x4afd4f
lea edi, [ebx + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x68]
call fcn.0045f470
mov eax, edx
jmp 0x4afd39
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
call fcn.004ae6f0
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x98], eax
add esp, 0x88
ret
lea edi, [eax + 0x140]
mov ecx, eax
mov eax, dword [esp + 0x5c]
call fcn.0045f470
mov eax, ecx
jmp 0x4afbf5
xor eax, eax
jmp 0x4afb8b
xor eax, eax
call fcn.0045f4f0
nop
call fcn.0045df10
jmp fcn.004af9f0