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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5f80db
sub esp, 0x7c
mov eax, dword [esp + 0x80]
lea ecx, [eax + 0x3c]
test byte [ecx], al
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0x300
call fcn.0045afe0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x5f80c9
mov eax, dword [esp + 0x80]
movzx ecx, byte [eax + 0x3f]
mov dword [esp + 0x38], ecx
movzx edx, byte [eax + 0x3e]
mov dword [esp + 0x34], edx
movzx ebx, byte [eax + 0x3d]
mov dword [esp + 0x30], ebx
movzx ebp, byte [eax + 0x3c]
mov dword [esp + 0x2c], ebp
mov esi, dword [eax + 0x10]
mov esi, dword [esi + 0x18]
mov edi, dword [eax + 0x14]
mov dword [esp], edi
call esi
mov eax, 4
mov ecx, dword [esp + 0x80]
lea eax, [ecx + eax + 0x3c]
mov dword [esp + 0x64], eax
mov edx, dword [ecx + 0x10]
mov edx, dword [edx + 0x28]
mov ebx, dword [ecx + 0x14]
mov dword [esp + 4], eax
mov dword [esp + 8], 4
mov dword [esp + 0xc], 0x2fc
mov dword [esp], ebx
call edx
lea eax, [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov dword [esp + 8], 4
mov dword [esp + 0xc], 0x2fc
call fcn.0043a9c0
mov eax, dword [esp + 0x34]
shl eax, 8
mov ecx, dword [esp + 0x38]
or eax, ecx
mov ecx, dword [esp + 0x30]
shl ecx, 0x10
or eax, ecx
mov ecx, dword [esp + 0x2c]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
cmp edx, 4
jge 0x5f7e0c
jne 0x5f7d49
movzx ebx, byte [ecx]
cmp bl, 0x49
jne 0x5f7e04
movzx ebx, byte [ecx + 1]
cmp bl, 0x44
jne 0x5f7dfc
movzx ebx, byte [ecx + 2]
cmp bl, 0x41
jne 0x5f7df4
movzx ebx, byte [ecx + 3]
cmp bl, 0x54
jne 0x5f7d46
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x34]
lea ebx, [edx - 1]
cmp ebx, 3
jbe 0x5f7b32
lea eax, [0x8489a0]
mov dword [esp], eax
lea eax, [0x86e3a0]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
cmp edx, 1
jne 0x5f7b42
mov ebx, dword [ecx + 0x30]
add ebx, 0xfffffff9
cmp ebx, 3
jbe 0x5f7b00
cmp edx, 4
jne 0x5f7d19
cmp eax, 0x7fffffff
ja 0x5f7c71
lea edx, [0x6acf20]
mov dword [esp], edx
call fcn.0040cd70
mov eax, dword [esp + 4]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
test ecx, ecx
jbe 0x5f7c21
cmp ecx, 0x1000
jle 0x5f7c6a
mov edx, 0x1000
test byte [eax], al
cmp edx, 0x1000
ja 0x5f7c63
mov ebx, dword [esp + 0x80]
mov ebp, dword [ebx + 4]
mov esi, dword [ebx]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0x1000
call fcn.0045afe0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test ecx, ecx
jne 0x5f7c51
cmp eax, 0x1000
ja 0x5f7c4a
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x14]
mov edx, dword [edx + 0x28]
mov ebp, dword [esp + 0x68]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x1000
mov dword [esp], ebx
call edx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x38], ecx
test ecx, ecx
ja 0x5f7b7c
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.005f80f0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
call fcn.004246e0
ud2
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x7c
ret
call fcn.004246e0
ud2
mov edx, ecx
jmp 0x5f7b8d
mov dword [esp + 0x3c], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x6b4ae0]
mov dword [esp], eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.0040a880
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
lea eax, [0x70a414]
mov dword [esp], eax
mov dword [esp + 4], 0x14
lea eax, [esp + 0x74]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0049a880
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
lea eax, [0x8489a0]
mov dword [esp], eax
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov dword [ecx + 0x34], 4
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005f7860
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
cmp edx, 4
jne 0x5f7de8
movzx edx, byte [ecx]
cmp dl, 0x49
jne 0x5f7de8
movzx edx, byte [ecx + 1]
cmp dl, 0x45
jne 0x5f7de8
movzx edx, byte [ecx + 2]
cmp dl, 0x4e
jne 0x5f7de8
movzx ecx, byte [ecx + 3]
cmp cl, 0x44
jne 0x5f7de8
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x34]
cmp edx, 4
je 0x5f7dbb
lea eax, [0x8489a0]
mov dword [esp], eax
lea eax, [0x86e3a0]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
mov dword [ecx + 0x34], 5
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005f7910
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x80]
jmp 0x5f7b4b
cmp edx, 4
jmp 0x5f7d49
cmp edx, 4
jmp 0x5f7d49
cmp edx, 4
jmp 0x5f7d49
je 0x5f807b
jne 0x5f7eb7
movzx ebx, byte [ecx]
cmp bl, 0x49
jne 0x5f8073
movzx ebx, byte [ecx + 1]
cmp bl, 0x48
jne 0x5f806b
movzx ebx, byte [ecx + 2]
cmp bl, 0x44
jne 0x5f8063
movzx ebx, byte [ecx + 3]
cmp bl, 0x52
jne 0x5f7eb4
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x34]
test edx, edx
je 0x5f7e87
lea eax, [0x8489a0]
mov dword [esp], eax
lea eax, [0x86e3a0]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
mov dword [ecx + 0x34], 1
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005f1d80
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
cmp edx, 4
jne 0x5f7f5d
movzx ebx, byte [ecx]
cmp bl, 0x50
jne 0x5f805b
movzx ebx, byte [ecx + 1]
cmp bl, 0x4c
jne 0x5f8053
movzx ebx, byte [ecx + 2]
cmp bl, 0x54
jne 0x5f804b
movzx ebx, byte [ecx + 3]
cmp bl, 0x45
jne 0x5f7f5a
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x34]
cmp edx, 1
je 0x5f7f2d
lea eax, [0x8489a0]
mov dword [esp], eax
lea eax, [0x86e3a0]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
mov dword [ecx + 0x34], 2
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005f22b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
cmp edx, 4
jne 0x5f7de8
movzx edx, byte [ecx]
cmp dl, 0x74
jne 0x5f7de8
movzx edx, byte [ecx + 1]
cmp dl, 0x52
jne 0x5f7de8
movzx edx, byte [ecx + 2]
cmp dl, 0x4e
jne 0x5f7de8
movzx ecx, byte [ecx + 3]
cmp cl, 0x53
jne 0x5f7de8
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x30]
add edx, 0xfffffff9
cmp edx, 3
ja 0x5f800f
mov edx, dword [ecx + 0x34]
cmp edx, 2
jne 0x5f7fdd
mov dword [ecx + 0x34], 3
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005f2680
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
lea eax, [0x8489a0]
mov dword [esp], eax
lea eax, [0x86e3a0]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
mov edx, dword [ecx + 0x34]
cmp edx, 1
jne 0x5f8019
jmp 0x5f7fb0
lea eax, [0x8489a0]
mov dword [esp], eax
lea eax, [0x86e3a0]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
cmp edx, 4
jmp 0x5f7f5d
cmp edx, 4
jmp 0x5f7f5d
cmp edx, 4
jmp 0x5f7f5d
cmp edx, 4
jmp 0x5f7eb7
cmp edx, 4
jmp 0x5f7eb7
cmp edx, 4
jmp 0x5f7eb7
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ebx, [0x70486b]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 4
call fcn.0044a070
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x5f80b5
mov edx, dword [esp + 0x28]
cmp edx, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
jmp 0x5f7ab5
mov edx, dword [esp + 0x28]
cmp edx, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
jmp 0x5f7e12
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
call fcn.004486b0
jmp fcn.005f7990