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

Disassembly:
mov ecx, dword [0x90eeac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xb8]
cmp eax, dword [ecx + 8]
jbe 0x5f426a
sub esp, 0x138
mov eax, dword [esp + 0x13c]
mov ecx, dword [eax + 0x138]
test ecx, ecx
je 0x5f3f16
mov edx, dword [eax + 0x13c]
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], edx
mov ecx, dword [esp + 0x12c]
test ecx, ecx
je 0x5f3f0e
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x5f3f05
or edx, 0x80
mov ebx, dword [esp + 0x130]
jmp 0x5f3f1c
xor edx, edx
xor ecx, ecx
xor ebx, ebx
jmp 0x5f3f1c
xor edx, edx
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x124], ecx
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x13
call fcn.004cc160
mov eax, dword [esp + 0x18]
and eax, 0x1f
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x14]
nop
cmp eax, 9
ja 0x5f3f7c
cmp eax, 7
jne 0x5f3f64
mov eax, dword [ecx]
jmp 0x5f3f99
cmp eax, 8
jne 0x5f3f6e
movzx eax, byte [ecx]
jmp 0x5f3f99
cmp eax, 9
jne 0x5f422f
movzx eax, word [ecx]
jmp 0x5f3f99
cmp eax, 0xa
jne 0x5f3f85
mov eax, dword [ecx]
jmp 0x5f3f99
cmp eax, 0xb
jne 0x5f3f8e
mov eax, dword [ecx]
jmp 0x5f3f99
cmp eax, 0xc
jne 0x5f422f
mov eax, dword [ecx]
test eax, eax
jbe 0x5f406b
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x124]
mov dword [esp], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x12
call fcn.004cc160
mov eax, dword [esp + 0x18]
and eax, 0x1f
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x14]
nop
cmp eax, 9
ja 0x5f4005
cmp eax, 7
jne 0x5f3fed
mov ecx, dword [ecx]
jmp 0x5f4022
cmp eax, 8
jne 0x5f3ff7
movzx ecx, byte [ecx]
jmp 0x5f4022
cmp eax, 9
jne 0x5f41f5
movzx ecx, word [ecx]
jmp 0x5f4022
cmp eax, 0xa
jne 0x5f400e
mov ecx, dword [ecx]
jmp 0x5f4022
cmp eax, 0xb
jne 0x5f4017
mov ecx, dword [ecx]
jmp 0x5f4022
cmp eax, 0xc
jne 0x5f41f5
mov ecx, dword [ecx]
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x44]
xor eax, eax
call fcn.004716c8
mov ecx, dword [esp + 0x13c]
mov edx, dword [ecx + 0x78]
lea ebx, [0x6ae520]
cmp edx, ebx
jne 0x5f41df
mov esi, dword [ecx + 0x7c]
lea edi, [esp + 0x44]
call fcn.004719e0
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x60]
mov dword [esp + 0x30], eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x5f40a2
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x140], edx
mov dword [esp + 0x144], ecx
mov dword [esp + 0x148], eax
add esp, 0x138
ret
mov dword [ebp + eax*4 - 4], edx
mov esi, dword [esp + 0x34]
inc esi
mov ecx, esi
mov edx, ebx
mov ebx, ebp
mov ebp, eax
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
cmp ecx, esi
jae 0x5f41c1
mov dword [esp + 0x38], ebp
mov dword [esp + 0x134], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x13c]
mov dword [esp], edx
lea ebx, [eax + ecx*4]
mov dword [esp + 4], ebx
call fcn.005ef660
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x13c]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp eax, edx
jbe 0x5f40f9
mov eax, dword [0x8e2600]
xor edx, edx
jmp 0x5f412c
mov edx, dword [ecx + 0x28c]
cmp edx, eax
jb 0x5f41d8
mov ebx, dword [ecx + 0x290]
sub edx, eax
sub ebx, eax
neg ebx
sar ebx, 0x1f
and eax, ebx
cmp edx, 3
jbe 0x5f41cc
mov edx, dword [ecx + 0x288]
mov edx, dword [edx + eax]
xor eax, eax
test eax, eax
jne 0x5f4196
mov eax, dword [esp + 0x38]
inc eax
mov ebx, dword [esp + 0x3c]
cmp ebx, eax
jb 0x5f4149
mov ebp, dword [esp + 0x134]
jmp 0x5f408d
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x134]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x676760]
mov dword [esp + 0x10], eax
call fcn.0046c350
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x13c]
mov ebp, ebx
mov ebx, edx
mov edx, dword [esp + 0x2c]
jmp 0x5f408d
mov eax, dword [esp + 0x134]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x148], eax
add esp, 0x138
ret
mov eax, edx
mov ecx, ebp
mov edx, ebx
jmp 0x5f4071
mov eax, 3
mov ecx, edx
call fcn.004714e0
mov ecx, edx
call fcn.00471550
mov dword [esp], edx
mov dword [esp + 4], ebx
lea eax, [0x677be0]
mov dword [esp + 8], eax
call fcn.00409df0
lea eax, [0x68a880]
mov dword [esp], eax
call fcn.0040bdb0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x6be9e5]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
lea ecx, [0x67f5e0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0046ab50
lea eax, [0x68a880]
mov dword [esp], eax
call fcn.0040bdb0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x6be9e5]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
lea ecx, [0x67f5e0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0046ab50
nop
call fcn.00470060
jmp fcn.005f3ea0