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

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov ebx, dword [edi]
mov al, byte [ebx + 0x1e]
test al, al
mov dword [esp + 0xc], ebx
mov dword [esp + 0x20], 0
je 0x5f0f46
mov dword [edi + 0x7c], 7
mov esi, edi
call fcn.005efbf0
cmp dword [edi + 0x4c], 0xbdf20da3
je 0x5f0f5f
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [edi + 0x78]
test eax, eax
push ebp
jl 0x5f11d6
lea eax, [edi + 0x11c]
push eax
mov dword [esp + 0x20], eax
call fcn.005f4850
mov ebp, dword [edi + 0x7c]
mov eax, ebp
and eax, 0xff
add esp, 4
cmp eax, 7
je 0x5f0fa9
cmp eax, 0xa
je 0x5f0fa9
cmp eax, 9
je 0x5f0fa9
cmp eax, 0xd
je 0x5f0fa9
mov dword [esp + 0x18], 0
jmp 0x5f103f
mov ecx, dword [edi + 0xc]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
jle 0x5f0fea
mov edx, dword [edi + 0x14]
mov ebx, ecx
mov cl, byte [edx]
cmp cl, 0x29
je 0x5f0fd4
cmp cl, 0x6b
jne 0x5f0fdc
or esi, dword [edx + 8]
jmp 0x5f0fdc
mov dword [esp + 0x14], 1
add edx, 0x14
dec ebx
jne 0x5f0fc3
test esi, esi
mov ebx, dword [esp + 0x10]
jne 0x5f0fef
cmp eax, 9
je 0x5f103f
cmp ebp, 0xb0a
jne 0x5f1010
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5f1010
mov dword [esp + 0x24], 0x5e4440
mov dword [edi + 0x7c], 5
jmp 0x5f103f
cmp eax, 7
je 0x5f101a
cmp eax, 0xd
jne 0x5f102c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5f102c
mov dword [esp + 0x24], 0x5e4440
jmp 0x5f103f
push ebx
call fcn.005f0250
push ebx
call fcn.005dc150
add esp, 8
mov byte [ebx + 0x1c], 1
mov al, byte [ebx + 0x1c]
test al, al
je 0x5f10b4
cmp dword [ebx + 0x60], 1
jne 0x5f10b4
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x5f1072
cmp dword [edi + 0x84], 3
jne 0x5f1064
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5f1072
push ebx
call fcn.005dc150
add esp, 4
jmp 0x5f1104
mov esi, ebx
call fcn.005efe30
cmp eax, 5
jne 0x5f1098
mov eax, dword [esp + 0x1c]
push eax
call fcn.005f48a0
add esp, 4
pop ebp
pop edi
pop esi
mov eax, 5
pop ebx
add esp, 0x10
ret
test eax, eax
push ebx
je 0x5f10aa
mov dword [edi + 0x7c], eax
call fcn.005dc150
add esp, 4
jmp 0x5f1104
call fcn.005eb550
add esp, 4
jmp 0x5f1104
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5f1104
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x5f10f2
mov eax, dword [edi + 0x84]
cmp eax, 3
je 0x5f10f2
cmp eax, 2
jne 0x5f10dd
mov dword [esp + 0x24], 0x5e4440
jmp 0x5f1104
push ebx
call fcn.005f0250
push ebx
call fcn.005dc150
add esp, 8
mov byte [ebx + 0x1c], 1
jmp 0x5f1104
mov eax, dword [edi + 0x154]
test eax, eax
je 0x5f1104
mov dword [esp + 0x24], 0x5e43e0
mov ecx, dword [esp + 0x24]
xor ebp, ebp
test ecx, ecx
je 0x5f1154
xor esi, esi
cmp ebp, dword [ebx + 4]
jge 0x5f1154
mov edx, dword [ebx + 8]
mov eax, dword [edx + esi + 4]
test eax, eax
je 0x5f114a
push eax
call ecx
add esp, 4
test eax, eax
je 0x5f114a
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x5f1136
cmp ecx, 0x13
jne 0x5f114a
mov dword [edi + 0x7c], eax
lea eax, [edi + 0x100]
push 0
push eax
call fcn.005f2110
add esp, 8
mov ecx, dword [esp + 0x24]
inc ebp
add esi, 0x18
jmp 0x5f1110
mov al, byte [edi + 0x106]
test al, al
je 0x5f118f
mov eax, dword [edi + 0x78]
xor edx, edx
cmp eax, edx
jl 0x5f118f
cmp ecx, edx
je 0x5f1178
cmp ecx, 0x5e43e0
je 0x5f1178
mov dword [ebx + 0x3c], edx
jmp 0x5f1189
mov eax, dword [edi + 0x10c]
mov ecx, dword [ebx + 0x40]
add ecx, eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], ecx
mov dword [edi + 0x10c], edx
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x5f11bf
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 0xc]
mov ebx, 0x10
test bl, al
je 0x5f11bb
mov esi, ecx
push 0
push esi
call fcn.005eb3d0
mov eax, dword [esi + 0xc]
add esp, 8
or eax, ebx
mov dword [esi + 0xc], eax
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push edx
call fcn.005f48a0
mov eax, dword [edi + 0x78]
add esp, 4
test eax, eax
jl 0x5f11d6
dec dword [ebx + 0x60]
mov eax, dword [edi]
mov dword [edi + 0x4c], 0x519c2973
mov cl, byte [eax + 0x1e]
test cl, cl
je 0x5f11ed
mov dword [edi + 0x7c], 7
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret