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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4afced
sub esp, 0x7c
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x88]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
lea edx, [0x61d5e0]
mov dword [esp], edx
call fcn.00409a30
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x90]
mov dword [edi + 4], eax
mov ecx, dword [0x813ad0]
test ecx, ecx
jne 0x4afc1b
mov ecx, dword [esp + 0x8c]
mov dword [edi], ecx
mov edx, dword [esp + 0x98]
mov dword [edi + 0xc], edx
mov edx, dword [0x813ad0]
test edx, edx
jne 0x4afbfd
mov edx, dword [esp + 0x94]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x84]
mov dword [edi + 0x10], edx
mov edx, dword [0x813ad0]
test edx, edx
jne 0x4afbdf
mov edx, dword [esp + 0x88]
mov dword [edi + 0x14], edx
mov dword [esp + 0x34], edi
mov edx, dword [esp + 0x28]
mov dword [edi + 0x1c], edx
mov edx, dword [0x813ad0]
test edx, edx
jne 0x4afbc8
mov edx, dword [esp + 0x38]
mov dword [edi + 0x18], edx
mov edx, dword [esp + 0x80]
mov ebx, dword [edx + 0x14]
mov dword [esp + 4], ebx
lea ebx, [0x600e60]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040dfa0
movzx eax, byte [esp + 0x14]
test al, al
jne 0x4afa4b
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4afa15
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
lea eax, [0x600e60]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.0040e320
mov edi, dword [esp + 0x10]
test byte [edi], al
mov eax, dword [0x813ad0]
test eax, eax
jne 0x4afa0a
mov eax, dword [esp + 0x34]
mov dword [edi], eax
add esp, 0x7c
ret
mov eax, dword [esp + 0x34]
call fcn.0044b8d0
jmp 0x4afa06
call fcn.0040a4b0
mov eax, dword [0x813ad0]
mov ecx, dword [esp]
test eax, eax
jne 0x4afa33
mov eax, dword [esp + 0x80]
mov dword [eax + 0x14], ecx
jmp 0x4af9c5
mov edx, dword [esp + 0x80]
lea edi, [edx + 0x14]
mov eax, ecx
call fcn.0044b8d0
mov eax, edx
jmp 0x4af9c5
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4afb0c
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x5ff860]
mov dword [esp], eax
lea ecx, [esp + 0x5c]
mov dword [esp + 4], ecx
call fcn.004072a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
lea eax, [0x642c6e]
mov dword [esp], eax
mov dword [esp + 4], 0x12
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0049d680
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
mov ebx, dword [edx + 0x2c]
mov edx, dword [edx + 0x28]
test edx, edx
je 0x4afafb
mov ebp, edx
mov edx, ebx
mov ebx, ebp
jmp 0x4afc37
mov edx, dword [0x801794]
lea ebx, [0x684800]
jmp 0x4afc37
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [eax + 4]
mov dword [esp + 4], ecx
lea ecx, [0x5ff860]
mov dword [esp], ecx
call fcn.004072a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
lea eax, [0x5ff860]
mov dword [esp], eax
lea ecx, [esp + 0x54]
mov dword [esp + 4], ecx
call fcn.004072a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
lea eax, [0x643d68]
mov dword [esp], eax
mov dword [esp + 4], 0x15
lea eax, [esp + 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.0049d680
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x4afadf
lea edx, [edi + 0x18]
mov edi, edx
mov ebp, eax
mov eax, dword [esp + 0x38]
call fcn.0044b8d0
mov eax, ebp
jmp 0x4af986
lea edx, [edi + 0x14]
mov ebx, edi
mov edi, edx
mov ebp, eax
mov eax, dword [esp + 0x88]
call fcn.0044b8d0
mov eax, ebp
mov edi, ebx
jmp 0x4af966
lea edx, [edi + 8]
mov ebx, edi
mov edi, edx
mov ebp, eax
mov eax, dword [esp + 0x94]
call fcn.0044b8d0
mov eax, ebp
mov edi, ebx
jmp 0x4af944
mov ecx, eax
mov eax, dword [esp + 0x8c]
call fcn.0044b8d0
mov eax, ecx
mov ecx, dword [esp + 0x8c]
jmp 0x4af922
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea ebp, [0x5ff860]
mov dword [esp], ebp
lea esi, [esp + 0x44]
mov dword [esp + 4], esi
call fcn.004072a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0049d940
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
lea eax, [0x5ff860]
mov dword [esp], eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.004072a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004267f0
ud2
call fcn.0044a170
jmp fcn.004af8b0