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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x8c]
cmp eax, dword [ecx + 8]
jbe 0x4af95f
sub esp, 0x10c
mov ecx, dword [esp + 0x110]
test ecx, ecx
je 0x4af918
mov edx, dword [esp + 0x118]
test edx, edx
je 0x4af918
nop
movzx ebx, byte [0x8553f8]
test bl, bl
je 0x4af6f9
mov ebx, dword [esp + 0x110]
mov dword [0x8553fc], ebx
mov ebx, dword [0x87bd00]
test ebx, ebx
jne 0x4af6e3
mov ebx, dword [esp + 0x114]
mov dword [0x855400], ebx
jmp 0x4af700
lea edi, [0x855400]
mov eax, dword [esp + 0x114]
call fcn.004626c0
mov ebx, eax
jmp 0x4af700
mov ebx, dword [esp + 0x114]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ebx
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x4af729
nop
movzx ebp, byte [ecx + 0xf]
mov esi, ebp
and ebp, 0x1f
xchg esi, eax
test al, 0x20
xchg esi, eax
jne 0x4af72f
or ebp, 0x80
jmp 0x4af72f
xor ebp, ebp
xor ecx, ecx
xor ebx, ebx
nop
movzx esi, byte [0x8553f8]
xchg esi, eax
test al, al
xchg esi, eax
je 0x4af777
mov esi, dword [esp + 0x118]
mov dword [0x8553fc], esi
mov esi, dword [0x87bd00]
test esi, esi
jne 0x4af763
mov eax, dword [esp + 0x11c]
mov dword [0x855400], eax
jmp 0x4af77e
lea edi, [0x855400]
mov eax, dword [esp + 0x11c]
call fcn.004626c0
jmp 0x4af77e
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x4af7a7
nop
movzx esi, byte [edx + 0xf]
mov edi, esi
and esi, 0x1f
xchg edi, eax
test al, 0x20
xchg edi, eax
jne 0x4af7ad
or esi, 0x80
jmp 0x4af7ad
xor esi, esi
xor edx, edx
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], esi
test ebp, ebp
je 0x4af7e1
test ebp, 0x200
jne 0x4af7e1
mov edi, ecx
lea ecx, [0x6c4d98]
mov dword [esp + 0x2c], ecx
mov ecx, edi
jmp 0x4af815
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.004b77c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x48], ecx
test esi, esi
je 0x4af839
test esi, 0x200
jne 0x4af839
mov dword [esp + 0x30], eax
lea eax, [0x6c4d98]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
jmp 0x4af86d
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004b77c0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp esi, eax
jne 0x4af892
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00403790
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4af8a1
mov byte [esp + 0x120], 0
add esp, 0x10c
ret
lea edi, [esp + 0x5c]
xor eax, eax
call fcn.00462939
lea edi, [esp + 0x78]
call fcn.0046291b
lea ecx, [esp + 0x78]
mov dword [esp + 0x68], ecx
call fcn.0044fd90
mov ecx, dword [esp]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], ecx
call fcn.004ade00
movzx ecx, byte [esp + 0x1c]
mov byte [esp + 0x120], cl
add esp, 0x10c
ret
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x118]
cmp eax, ecx
je 0x4af92e
xor eax, eax
jmp 0x4af951
mov dword [esp], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 8], eax
call fcn.004036b0
movzx eax, byte [esp + 0xc]
mov byte [esp + 0x120], al
add esp, 0x10c
ret
call fcn.004612b0
jmp fcn.004af670