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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x5af5d2
sub esp, 0xb8
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5af0d0
mov byte [ecx + 4], 1
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
test edx, edx
jne 0x5af5a7
lea eax, [0x64bca0]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x5af52e
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00408c10
mov eax, dword [esp + 8]
lea ecx, [0x633ac0]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
lea eax, [0x6c7fb0]
mov dword [esp], eax
mov edx, dword [esp + 0x6c]
mov dword [esp + 4], edx
lea ebx, [0x66f92c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 8
lea ebx, [esp + 0x70]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004ac180
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x5af527
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
lea eax, [0x633ac0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
call fcn.00442930
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], eax
lea edi, [esp + 0x88]
xor eax, eax
call fcn.0045af84
lea eax, [0x659f80]
mov dword [esp], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 4], ecx
lea edx, [esp + 0x88]
mov dword [esp + 8], edx
call fcn.0040d1e0
xor eax, eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x68]
jmp 0x5af1fc
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.0040d450
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x88]
test ebx, ebx
je 0x5af288
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
lea esi, [eax + 1]
cmp ecx, esi
jb 0x5af245
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ecx
lea ecx, [edx + eax*8 + 4]
mov dword [ecx], ebx
mov ecx, dword [0x8326a0]
lea ebx, [edx + eax*8]
test ecx, ecx
jne 0x5af23a
mov dword [ebx], ebp
jmp 0x5af1e1
mov edi, ebx
mov eax, ebp
call fcn.0045ace0
jmp 0x5af1e1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], ebp
lea ebx, [0x633ac0]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
call fcn.004429e0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea esi, [eax + 1]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x5c]
jmp 0x5af217
mov dword [esp + 0x64], edx
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00408c90
mov eax, dword [esp + 0xc]
lea ecx, [0x6ca830]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004871e0
xor eax, eax
jmp 0x5af3a3
mov dword [esp + 0x44], edx
lea eax, [ecx + edx*8]
mov ebx, dword [eax]
mov dword [esp + 0x50], ebx
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov ebp, dword [esp + 0x58]
mov dword [esp], ebp
mov esi, dword [esp + 0x38]
mov dword [esp + 4], esi
call fcn.00408c10
mov eax, dword [esp + 8]
lea ecx, [0x633ac0]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.00408c10
mov eax, dword [esp + 8]
lea ecx, [0x633ac0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
lea eax, [0x6c7fb0]
mov dword [esp], eax
mov edx, dword [esp + 0x6c]
mov dword [esp + 4], edx
lea ebx, [0x66f684]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 8
lea ebp, [esp + 0x78]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 2
call fcn.004ac180
mov eax, dword [esp + 0x44]
lea edx, [eax + 1]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x60]
cmp edx, eax
jl 0x5af2b9
mov ecx, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jle 0x5af3f9
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x64]
lea edx, [ecx + eax*8]
mov ebx, dword [edx]
mov dword [esp + 0x58], ebx
mov edx, dword [edx + 4]
mov dword [esp + 0x38], edx
lea ebp, [0x659f80]
mov dword [esp], ebp
mov esi, dword [esp + 0xc0]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.0040f8a0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
xor edx, edx
jmp 0x5af394
lea eax, [0x6c7fb0]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
lea ecx, [0x66e939]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004ac180
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [0x6c7f90]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00489f20
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
test eax, eax
jne 0x5af4fc
lea eax, [0x64cea0]
mov dword [esp], eax
call fcn.0040b4f0
mov edi, dword [esp + 4]
mov eax, dword [0x8326a0]
test eax, eax
jne 0x5af4e0
mov eax, dword [esp + 0xbc]
mov dword [edi], eax
mov dword [eax + 0x10], edi
lea eax, [0x6c8270]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
add esp, 0xb8
ret
mov eax, dword [esp + 0xbc]
call fcn.0045ace0
lea ecx, [eax + 0x10]
mov eax, edi
mov edi, ecx
call fcn.0045ace0
mov edi, eax
jmp 0x5af4af
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
add esp, 0xb8
ret
xor ecx, ecx
jmp 0x5af17d
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00408c10
mov eax, dword [esp + 8]
lea ecx, [0x633ac0]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
lea eax, [0x6c7fb0]
mov dword [esp], eax
mov edx, dword [esp + 0x6c]
mov dword [esp + 4], edx
lea ebx, [0x66f032]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 6
lea ebx, [esp + 0x70]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004ac180
jmp 0x5af16c
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], ecx
add esp, 0xb8
ret
call fcn.00459790
jmp fcn.005af090