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

Disassembly:
push 0xffffffffffffffff
push 0x5e3073
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x65fde0]
xor eax, esp
mov dword [esp + 0x4d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65fde0]
xor eax, esp
push eax
lea eax, [esp + 0x4ec]
mov dword fs:[0], eax
mov eax, dword [esp + 0x504]
mov ebp, dword [esp + 0x4fc]
mov edi, dword [esp + 0x500]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], edx
call fcn.00411f00
lea eax, [esp + 0x70]
mov dword [esp + 0x4f4], 0
call fcn.00411f00
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x58]
push ecx
lea ebx, [esp + 0x24]
lea esi, [esp + 0x20]
mov ecx, edi
mov byte [esp + 0x4fc], 1
call fcn.004aeef0
add esp, 8
test al, al
je 0x4af4a9
mov edi, dword [esp + 0x18]
push edi
mov esi, 1
call fcn.004afc00
add esp, 4
test al, al
je 0x4af21b
push ebp
call fcn.004afa50
test al, al
jne 0x4af21b
xor esi, esi
mov edx, dword [esp + 0x1c]
push edx
sub esp, 0x1c
lea ecx, [esp + 0x74]
mov eax, esp
mov dword [esp + 0x40], esp
push ecx
call fcn.00406450
mov ecx, esi
mov esi, ebp
call fcn.004aedf0
cmp byte [ebp], 0
je 0x4af48c
xor ebx, ebx
cmp edi, 1
jne 0x4af252
mov ebx, 0x4883000
push 0x62ff14
lea ecx, [esp + 0x34]
call fcn.00419700
add esp, 4
mov esi, eax
mov edx, dword [esp + 0x24]
push edx
lea edi, [esp + 0xc8]
mov byte [esp + 0x4f8], 2
call fcn.004af080
add esp, 4
mov edi, eax
push ebx
mov ecx, esi
mov byte [esp + 0x4f8], 3
call fcn.0040a620
push eax
lea eax, [esp + 0x78]
call fcn.00408c50
push eax
mov eax, edi
call fcn.00408c50
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0042df30
add esp, 0x14
lea edi, [esp + 0xc4]
mov ebp, eax
call fcn.00406490
lea ecx, [esp + 0x30]
mov byte [esp + 0x4f4], 1
call fcn.0040a610
test ebp, ebp
je 0x4af47f
cmp dword [esp + 0x18], 1
mov ebx, 4
jne 0x4af314
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
mov dword [esp + 0x2c], ebx
call fcn.0042dfa0
or dword [esp + 0x28], 0x100
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x1f
push ebp
call fcn.0042de60
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp eax, 1
jne 0x4af3b1
push 0x62ff28
lea ecx, [esp + 0x24]
call fcn.00419700
add esp, 4
mov ecx, eax
mov byte [esp + 0x4f4], bl
call fcn.0040a620
mov esi, eax
lea eax, [esp + 0x38]
call fcn.004069b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x4f4], 6
call fcn.0040a610
mov esi, dword [esp + 0x34]
lea edi, [esp + 0xa8]
call fcn.004afa30
mov eax, edi
mov byte [esp + 0x4f4], 7
call fcn.004064d0
push eax
mov eax, edi
call fcn.0049d440
push eax
lea eax, [esp + 0x40]
call fcn.004064d0
push eax
lea eax, [esp + 0x44]
call fcn.00408c50
push eax
push ebp
call fcn.0042ddf0
add esp, 0x14
call fcn.00408800
lea edi, [esp + 0x38]
call fcn.00406490
jmp 0x4af3c2
test eax, eax
jne 0x4af3c2
push eax
push eax
push eax
push eax
push ebp
call fcn.0042ddf0
add esp, 0x14
lea eax, [esp + 0x8c]
call fcn.00408660
lea ecx, [esp + 0x18]
push ecx
push 0x400
lea edx, [esp + 0xe8]
push edx
mov byte [esp + 0x500], 8
push ebp
mov dword [esp + 0x28], 0
call fcn.0042c7b0
add esp, 0x10
test eax, eax
je 0x4af43d
lea ecx, [ecx]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4af43d
mov byte [esp + eax + 0xe0], 0
lea esi, [esp + 0xe0]
lea eax, [esp + 0x8c]
call fcn.00416680
lea eax, [esp + 0x18]
push eax
push 0x400
mov ecx, esi
push ecx
push ebp
call fcn.0042c7b0
add esp, 0x10
test eax, eax
jne 0x4af400
lea edx, [esp + 0x8c]
push edx
lea ebx, [esp + 0x3c]
call fcn.004af980
add esp, 4
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x4f4], 9
call fcn.004114b0
lea edi, [esp + 0x38]
call fcn.00406490
lea edi, [esp + 0x8c]
mov byte [esp + 0x4f4], 1
call fcn.00408800
push ebp
call fcn.0042d660
mov ebp, dword [esp + 0x2c]
add esp, 4
mov esi, ebp
call fcn.004aeec0
lea edi, [esp + 0x70]
call fcn.00406490
lea edi, [esp + 0x54]
call fcn.00406490
mov al, 1
jmp 0x4af4bd
lea edi, [esp + 0x70]
call fcn.00406490
lea edi, [esp + 0x54]
call fcn.00406490
xor al, al
mov ecx, dword [esp + 0x4ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4d4]
xor ecx, esp
call fcn.005b6c8b
add esp, 0x4e4
ret 0xc