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

Disassembly:
mov ecx, dword [0x90eeac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x30]
cmp eax, dword [ecx + 8]
jbe 0x5f0d54
sub esp, 0xb0
mov eax, dword [esp + 0xb8]
jmp 0x5f09bb
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
lea edi, [esp + 0x2c]
xor eax, eax
call fcn.004716fb
mov ecx, dword [esp + 0xb4]
mov dword [esp], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
call fcn.005ef660
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
lea edi, [esp + 0x50]
lea esi, [esp + 0x2c]
call fcn.00471bde
lea ecx, [0x69b4c0]
mov dword [esp], ecx
lea edx, [esp + 0x50]
mov dword [esp + 4], edx
call fcn.004e1200
mov ecx, dword [esp + 8]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0xb4]
mov dword [esp], edx
lea ebx, [0x662e60]
mov dword [esp + 4], ebx
lea ebp, [esp + 0x2c]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x40]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
call fcn.005f0300
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x5f0d3b
lea edi, [esp + 0x64]
xor eax, eax
call fcn.004716fb
lea ecx, [esp + 0x2c]
mov dword [esp], ecx
lea edx, [esp + 0x64]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x14
call fcn.00402430
movzx ecx, byte [esp + 0xc]
test cl, cl
jne 0x5f0d06
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx + 0x28c]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x40]
sub edx, ebp
cmp ebx, eax
jb 0x5f0abc
cmp dword [esp + 0x3c], eax
jae 0x5f0ade
cmp ebx, eax
jbe 0x5f0abc
mov edx, dword [esp + 0x3c]
mov ebx, eax
sub eax, edx
mov esi, eax
jmp 0x5f0ae2
mov edx, dword [esp + 0x3c]
cmp edx, eax
jbe 0x5f0ace
mov edx, eax
sub eax, ebx
mov ebx, edx
mov esi, eax
jmp 0x5f0ae2
mov esi, eax
sub eax, ebx
mov ebx, esi
sub esi, edx
cmp esi, eax
ja 0x5f0ae2
mov esi, eax
jmp 0x5f0ae2
mov ebx, eax
mov esi, edx
mov dword [esp + 0x4c], ebx
movzx eax, byte [ecx + 0x295]
test al, al
je 0x5f0b25
mov dword [esp], ecx
lea eax, [0x662e60]
mov dword [esp + 4], eax
lea edx, [esp + 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
call fcn.005f2e50
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
jmp 0x5f0b57
mov dword [esp], ecx
lea eax, [0x662e60]
mov dword [esp + 4], eax
lea edx, [esp + 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
call fcn.005f2500
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
test ecx, ecx
jne 0x5f0cf1
mov dword [esp + 0x78], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xb4]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x200
call fcn.005efa80
mov eax, dword [esp + 0xc]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005ef020
movzx eax, byte [esp + 8]
test al, al
je 0x5f09b7
lea edi, [esp + 0x84]
xor eax, eax
call fcn.004716f5
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x98], ecx
lea edi, [esp + 0x9c]
lea esi, [esp + 0x2c]
call fcn.00471bde
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx + 0xb4]
mov ebx, dword [ecx + 0xb0]
inc ebx
mov ebp, dword [ecx + 0xac]
cmp edx, ebx
jae 0x5f0c97
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x696120]
mov dword [esp + 0x10], eax
call fcn.0046c350
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xb4]
mov dword [ebx + 0xb4], eax
mov eax, dword [0x90f128]
test eax, eax
je 0x5f0c86
call fcn.00471470
mov dword [edi], ecx
mov ebp, dword [ebx + 0xac]
mov dword [edi + 4], ebp
mov dword [ebx + 0xac], ecx
mov ebx, edx
mov ebp, ecx
mov ecx, dword [esp + 0xb4]
mov dword [ecx + 0xb0], ebx
mov edx, dword [0x90f128]
imul ebx, ebx, 0x2c
lea edi, [ebx + ebp - 0x2c]
test edx, edx
je 0x5f0ce0
mov dword [esp + 0x80], edi
lea eax, [0x696120]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x84]
mov dword [esp + 8], eax
call fcn.0040eab0
mov ecx, dword [esp + 0xb4]
mov edi, dword [esp + 0x80]
lea esi, [esp + 0x84]
call fcn.00471ba2
jmp 0x5f09b7
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], ebp
add esp, 0xb0
ret
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax + 0xb0]
test ecx, ecx
je 0x5f0d1e
mov byte [eax + 0x29c], 1
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
add esp, 0xb0
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
add esp, 0xb0
ret
call fcn.00470060
jmp fcn.005f0990