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

Disassembly:
mov ecx, dword [0x84873c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x104]
cmp eax, dword [ecx + 8]
jbe 0x5fb4b3
sub esp, 0x184
mov eax, dword [esp + 0x188]
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x74], edx
lea ebx, [0x656fa0]
mov dword [esp], ebx
call fcn.0040c880
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], eax
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.0046a889
lea edi, [esp + 0x118]
call fcn.0046a875
lea ecx, [esp + 0x118]
mov dword [esp + 0xd4], ecx
call fcn.00454540
mov eax, dword [esp]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x188]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
test ecx, ecx
je 0x5faf9c
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x44], edx
je 0x5fafaa
xor eax, eax
jmp 0x5fafca
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x50]
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call ecx
cmp dword [esp + 4], 0x19
sete al
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x78]
test al, al
je 0x5fafd7
xor eax, eax
xor ecx, ecx
jmp 0x5fb0ed
lea eax, [0x667cc0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044f930
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x7c]
mov dword [ecx + 4], 1
mov dword [ecx + 8], 1
mov edx, dword [0x8489b0]
test edx, edx
je 0x5fb021
call fcn.0046a610
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
lea eax, [esp + 0xc8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18c]
mov dword [esp + 0xc], eax
call fcn.005f9fd0
mov eax, dword [esp + 0x10]
test byte [eax], al
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
mov ebx, dword [esp + 0x14]
test edx, edx
jbe 0x5fb0dd
mov edx, dword [0x8489b0]
mov edi, dword [ecx]
mov dword [esp + 0x84], edi
mov ebp, dword [eax]
test edx, edx
je 0x5fb0b8
mov dword [esp + 0x48], ebx
mov dword [esp + 0x80], ebp
mov eax, edi
call fcn.0046a610
mov dword [edi], ebp
mov ecx, dword [eax]
mov dword [edi + 4], ecx
lea ecx, [0x667cc0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00411a90
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
xor eax, eax
call fcn.0046a88a
mov ecx, dword [esp + 0x84]
mov dword [ecx], ebp
mov dword [ecx + 0x14], ebx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x190], eax
add esp, 0x184
ret
xor eax, eax
mov ecx, eax
call fcn.0046a670
mov ebx, dword [esp + 0x50]
inc ebx
mov eax, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x40]
mov ebx, dword [edx + 0x64]
mov ebp, dword [esp + 0x74]
mov dword [esp], ebp
call ebx
mov eax, dword [esp + 0x50]
cmp dword [esp + 4], eax
jle 0x5fb2ba
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x2c]
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov dword [esp + 4], eax
call edx
lea edi, [esp + 0xe4]
lea esi, [esp + 8]
call fcn.0046ad1e
lea eax, [esp + 0xe4]
mov dword [esp], eax
call fcn.005ff210
movzx eax, byte [esp + 4]
test al, al
jne 0x5fb15b
xor eax, eax
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x3c]
jmp 0x5fb0e6
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf8]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0xc8]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x18c]
mov dword [esp + 0xc], ecx
call fcn.005f9fd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], ecx
lea edi, [esp + 0xb0]
mov edx, eax
xor eax, eax
call fcn.0046a88a
mov ecx, dword [edx]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xb4], ecx
mov edx, dword [esp + 0x108]
mov ebx, dword [esp + 0x10c]
mov ebp, dword [esp + 0x110]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebp
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x7c]
mov ebx, dword [edx + 8]
mov ebp, dword [edx + 4]
inc ebp
mov esi, dword [edx]
cmp ebx, ebp
jae 0x5fb25a
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x667cc0]
mov dword [esp + 0x10], eax
call fcn.0044fab0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x7c]
mov dword [ebx + 8], eax
mov eax, dword [0x8489b0]
test eax, eax
je 0x5fb24c
call fcn.0046a610
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
xor eax, eax
mov ebp, edx
mov esi, ecx
mov ecx, dword [esp + 0x3c]
mov edx, ebx
mov dword [edx + 4], ebp
mov ebx, dword [0x8489b0]
lea ebp, [ebp + ebp*2]
lea edi, [esi + ebp*8 - 0x18]
test ebx, ebx
je 0x5fb2a4
mov dword [esp + 0x84], edi
lea eax, [0x667cc0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0xb0]
mov dword [esp + 8], eax
call fcn.00411ac0
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x84]
lea esi, [esp + 0xb0]
call fcn.0046ad64
mov ecx, dword [esp + 0x3c]
inc ecx
jmp 0x5fb0e6
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x64]
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
test eax, eax
jle 0x5fb2e2
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x5fb2e6
jmp 0x5fb3bb
mov ecx, dword [esp + 0x7c]
lea edi, [esp + 0x98]
xor eax, eax
call fcn.0046a88a
lea ecx, [0x6959e8]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 4]
inc ebx
mov ebp, dword [ecx]
cmp edx, ebx
jae 0x5fb367
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x667cc0]
mov dword [esp + 0x10], eax
call fcn.0044fab0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x7c]
mov dword [ebx + 8], eax
mov eax, dword [0x8489b0]
test eax, eax
je 0x5fb35d
call fcn.0046a610
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov ebx, edx
mov ebp, ecx
mov ecx, dword [esp + 0x7c]
mov dword [ecx + 4], ebx
mov eax, dword [0x8489b0]
lea edx, [ebx + ebx*2]
lea edi, [ebp + edx*8 - 0x18]
test eax, eax
je 0x5fb3aa
mov dword [esp + 0x84], edi
lea eax, [0x667cc0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x98]
mov dword [esp + 8], eax
call fcn.00411ac0
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x84]
lea esi, [esp + 0x98]
call fcn.0046ad64
jmp 0x5fb0cb
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x5fb4ac
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x54]
mov dword [esp], eax
lea eax, [0x681ae1]
mov dword [esp + 4], eax
mov dword [esp + 8], 5
lea eax, [0x68a8d1]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x1e
call fcn.00453520
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x88]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b9b20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
lea eax, [0x657000]
mov dword [esp], eax
lea ecx, [esp + 0x90]
mov dword [esp + 4], ecx
call fcn.00409e90
mov eax, dword [esp + 8]
lea ecx, [0x657000]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004389a0
mov edx, eax
jmp 0x5fb3e0
call fcn.00469200
jmp fcn.005faf00