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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x37c
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x14], ecx
mov edi, eax
mov dword [esp + 0x10], eax
and edi, 0xfffffffc
jne 0x5f0b53
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
je 0x5f0b40
mov esi, dword [esp + 0x14]
mov edx, dword [esi]
cmp eax, 1
jne 0x5f0844
cmp word [edx], 0x5c
je 0x5f0c01
mov dword [esp + 0x44], eax
lea edi, [esp + 0x70]
xor eax, eax
mov ecx, 0xc0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x44]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x58]
mov dword [esp], eax
add esi, 0x18
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x54], 0
call fcn.005f1d10
sub esp, 4
cmp byte [esp + 0x60], 0
jne 0x5f09f9
lea eax, [esp + 0x44]
lea ecx, [esp + 0x2c]
mov dword [esp], eax
call fcn.005f1b30
sub esp, 4
movzx eax, byte [esp + 0x34]
lea ebx, [esp + 0x70]
test al, al
jne 0x5f08cf
jmp 0x5f09ee
lea esi, [esp + 0x370]
cmp ebx, esi
je 0x5f0a70
mov edx, dword [esp + 0x2c]
mov byte [ebx + 8], al
lea eax, [esp + 0x44]
lea ecx, [esp + 0x38]
add ebx, 0xc
mov dword [ebx - 0xc], edx
mov edx, dword [esp + 0x30]
mov dword [ebx - 8], edx
mov dword [esp], eax
call fcn.005f1b30
sub esp, 4
mov edx, dword [esp + 0x38]
movzx eax, byte [esp + 0x40]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x34], al
mov dword [esp + 0x30], edx
test al, al
jne 0x5f08c0
lea edi, [esp + 0x370]
cmp ebx, edi
je 0x5f0a70
lea eax, [esp + 0x70]
cmp ebx, eax
je 0x5f09ee
lea eax, [esp + 0x70]
sub ebx, eax
mov esi, ebx
sar esi, 2
imul esi, esi, 0xaaaaaaab
cmp ebx, 0xc
je 0x5f0bcd
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
and eax, 0xfffffffc
mov dword [edi + 0x18], eax
jne 0x5f0bf8
mov eax, esi
mov dword [esp], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], 1
call fcn.005f1250
sub esp, 8
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x18]
mov eax, dword [edx]
shl eax, 5
lea ebx, [edx + eax + 8]
test esi, esi
jle 0x5f09ee
lea ebp, [esp + 0x70]
lea eax, [esi + esi*2]
mov edx, dword [esp + 0x14]
lea eax, [ebp + eax*4]
mov dword [esp + 0x18], eax
nop
mov eax, dword [ebp + 4]
lea ecx, [ebx + 8]
movzx edi, byte [ebp + 8]
mov dword [esp + 0x10], edx
add ebp, 0xc
mov esi, eax
sub esi, dword [edx]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esp], eax
sar esi, 1
lea ecx, [eax + ecx*2]
mov dword [esp + 4], ecx
mov ecx, ebx
add ebx, 0x20
call fcn.00630640
mov eax, edi
mov dword [ebx - 4], esi
sub esp, 8
movzx edi, al
mov edx, dword [esp + 0x10]
mov dword [ebx - 8], edi
mov eax, dword [edx + 0x18]
add dword [eax], 1
cmp dword [esp + 0x18], ebp
jne 0x5f09a0
add esp, 0x37c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x58]
cmp byte [esp + 0x6c], 0
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x74], eax
movzx eax, byte [esp + 0x60]
mov byte [esp + 0x78], al
je 0x5f0ba4
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
movzx eax, byte [esp + 0x6c]
mov byte [esp + 0x84], al
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.005f1b30
sub esp, 4
movzx eax, byte [esp + 0x34]
test al, al
je 0x5f0c29
lea ebx, [esp + 0x88]
jmp 0x5f08cf
mov edi, dword [esp + 0x14]
mov ecx, 0x40
mov esi, dword [edi + 0x18]
mov edx, esi
mov dword [esp + 0x10], esi
and edx, 0xfffffffc
mov dword [edi + 0x18], edx
je 0x5f0a8f
mov ecx, dword [edx]
add ecx, 0x40
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], 0
mov byte [esp + 0x10], al
call fcn.005f1250
sub esp, 8
mov edi, dword [esp + 0x14]
movzx eax, byte [esp + 0x10]
lea esi, [esp + 0x70]
mov ecx, dword [edi + 0x18]
mov byte [esp + 0x1f], al
mov edx, dword [ecx]
shl edx, 5
lea ebx, [ecx + edx + 8]
mov edx, edi
lea esi, [esi]
mov eax, dword [esi + 4]
lea ecx, [ebx + 8]
movzx ebp, byte [esi + 8]
mov dword [esp + 0x10], edx
add esi, 0xc
mov edi, eax
sub edi, dword [edx]
mov dword [ebx], ecx
mov ecx, dword [esi - 0xc]
mov dword [esp], eax
sar edi, 1
lea ecx, [eax + ecx*2]
mov dword [esp + 4], ecx
mov ecx, ebx
add ebx, 0x20
call fcn.00630640
mov eax, ebp
mov dword [ebx - 4], edi
sub esp, 8
movzx ebp, al
mov edx, dword [esp + 0x10]
mov dword [ebx - 8], ebp
mov eax, dword [edx + 0x18]
add dword [eax], 1
lea eax, [esp + 0x370]
cmp esi, eax
jne 0x5f0ad0
movzx eax, byte [esp + 0x1f]
lea ebx, [esp + 0x70]
test al, al
jne 0x5f08cf
jmp 0x5f09ee
mov eax, dword [esp + 0x14]
or dword [eax + 0x18], 3
add esp, 0x37c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [edi]
lea ebx, [edi + 8]
test esi, esi
jle 0x5f0b99
lea esi, [esi]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x5f0b75
mov dword [esp], eax
lea ecx, [ebx + 0x18]
call fcn.00594540
sub esp, 4
mov eax, dword [ebx]
lea edx, [ebx + 8]
cmp eax, edx
je 0x5f0b91
mov edx, dword [ebx + 8]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.006572c0
add ebx, 0x20
sub esi, 1
jne 0x5f0b60
mov dword [edi], 0
jmp 0x5f0820
lea eax, [esp + 0x44]
lea ecx, [esp + 0x2c]
mov esi, 1
mov dword [esp], eax
call fcn.005f1b30
sub esp, 4
movzx eax, byte [esp + 0x34]
lea ebx, [esp + 0x7c]
test al, al
jne 0x5f08cf
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x18]
mov edx, eax
mov dword [esp + 0x10], eax
and edx, 0xfffffffc
je 0x5f0c16
mov eax, dword [edx]
test eax, eax
je 0x5f0c16
mov edi, dword [esp + 0x14]
add eax, esi
mov dword [edi + 0x18], edx
jmp 0x5f0961
mov esi, 2
mov eax, dword [eax]
add eax, esi
jmp 0x5f0961
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
and eax, 0xfffffffc
or eax, 2
mov dword [esi + 0x18], eax
jmp 0x5f09ee
movzx eax, byte [esp + 0x78]
or edx, eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x18], edx
jmp 0x5f09ee
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
and eax, 0xfffffffc
mov dword [esi + 0x18], eax
jne 0x5f0bf3
mov dword [esp], 2
mov ecx, dword [esp + 0x18]
mov esi, 2
mov dword [esp + 4], 1
call fcn.005f1250
sub esp, 8
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x18]
mov eax, dword [edx]
shl eax, 5
lea ebx, [edx + eax + 8]
jmp 0x5f098c