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

Disassembly:
sub esp, 0x90
mov eax, dword [esp + 0xb4]
mov ecx, 1
test eax, eax
mov dword [esp + 0x1c], 0
push ebx
cmovs eax, ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0xb8], eax
mov ecx, 0x20
mov eax, dword [esp + 0xbc]
test eax, eax
push ebp
cmove eax, ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xc4]
test eax, eax
push esi
mov esi, dword [esp + 0xb0]
cmove eax, ecx
mov ecx, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xd4]
test edi, edi
push dword [esp + 0xd8]
mov dword [esp + 0xd0], eax
mov eax, 0x800
push dword [esp + 0xc0]
cmove edi, eax
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0xb0]
xor ebx, ebx
push dword [esp + 0xc0]
add eax, ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xb8]
mov ebp, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x38]
push esi
push eax
mov dword [esp + 0xe8], edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
call fcn.005e64d0
add esp, 0x14
test eax, eax
jne 0x5e68cb
test edi, edi
je 0x5e6776
mov dword [esi + 0xc], edi
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x5e6784
mov dword [esi + 0x10], eax
push 0
push 0
lea eax, [esp + 0x34]
push esi
push eax
call fcn.005e63f0
add esp, 0x10
test eax, eax
jne 0x5e68cb
cmp dword [esp + 0x30], ebx
jbe 0x5e688c
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], 3
mov dword [esp + 0x20], 0x12
lea esp, [esp]
mov ecx, dword [esp + 0xac]
mov eax, ebp
mov edx, dword [esp + 0xa4]
sub eax, ecx
test ebx, ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
mov ebp, edi
cmove edx, dword [esp + 0x44]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xa4], edx
cmp edi, 2
jb 0x5e6840
jne 0x5e6816
cmp eax, 0x400
ja 0x5e6840
test ebx, ebx
je 0x5e6840
cmp ebx, 4
jae 0x5e6840
cmp dword [esp + 0x10], ecx
jmp 0x5e68d8
cmp dword [esp + 0x10], ecx
jne 0x5e6820
test ebx, ebx
je 0x5e6840
cmp edi, 3
jne 0x5e68d6
cmp dword [esp + 0x38], 0xc00
jbe 0x5e68de
cmp ebx, 4
jb 0x5e68de
mov eax, dword [esp + 0xd4]
inc ebx
push 0
push 1
mov dword [esi + 0xc], eax
lea eax, [esp + 0x34]
push esi
push eax
call fcn.005e63f0
add esp, 0x10
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x30], 0
ja 0x5e67c0
test ebx, ebx
je 0x5e688c
push ebx
push dword [esp + 0xa8]
lea eax, [esp + 0x34]
push ebp
push eax
call fcn.005e6060
add esp, 0x10
mov ebp, eax
mov eax, dword [esp + 0xb0]
mov word [ebp], 0x11
mov byte [ebp + 2], 0
add ebp, 3
sub ebp, dword [esp + 0xac]
mov dword [eax], ebp
mov eax, dword [esp + 0x58]
mov dword [esp + 0x60], ebp
test eax, eax
je 0x5e68c9
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5e68c9
push 0
push ebp
push dword [esp + 0x64]
push eax
call ecx
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
test edi, edi
je 0x5e6840
mov edi, dword [esp + 0xb4]
cmp dword [edi + 0x14], 0
je 0x5e690a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push edi
call fcn.005e6110
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
xor esi, esi
cmp dword [esp + 0xc4], esi
je 0x5e6a5a
cmp ebp, dword [esp + 0xcc]
jae 0x5e6a5a
push ebx
push eax
push ebp
call fcn.005e6550
mov dword [esp + 0x28], eax
add esp, 0xc
dec eax
cmp dword [esp + 0xc4], eax
cmovbe eax, dword [esp + 0xc4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x5e6a5a
cmp dword [esp + 0x30], ebp
jbe 0x5e6a5a
mov eax, dword [esp + 0xd4]
cmp ebp, dword [esp + 0xc8]
jb 0x5e696e
shr eax, 2
push 0
push 1
mov dword [edi + 0xc], eax
lea eax, [esp + 0x34]
push edi
push eax
call fcn.005e63f0
mov edi, dword [esp + 0x44]
add esp, 0x10
inc esi
cmp edi, ebp
jb 0x5e6a49
jne 0x5e69a0
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x38], eax
jae 0x5e6a49
mov eax, dword [esp + 0xb4]
cmp dword [eax + 0x14], 0
je 0x5e69c4
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.005e6110
mov edi, dword [esp + 0x40]
add esp, 0xc
lea eax, [esi + ebx]
push eax
push dword [esp + 0x3c]
push edi
call fcn.005e6550
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x5e6a49
mov ecx, dword [esp + 0xac]
cmp dword [esp + 0x10], ecx
jne 0x5e69ee
xor edx, edx
jmp 0x5e6a02
push ebx
push dword [esp + 0x18]
push esi
call fcn.005e6550
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, esi
cmp ebx, 3
ja 0x5e6a17
lea ecx, [esi + ebx]
cmp dword [esp + 0x28], ecx
sbb ecx, ecx
and ecx, 2
jmp 0x5e6a27
cmp ebx, 0x12
ja 0x5e6a29
lea ecx, [esi + ebx]
cmp dword [esp + 0x20], ecx
sbb ecx, ecx
neg ecx
add ecx, esi
sub eax, dword [esp + 0x1c]
lea ecx, [ecx + eax*2]
test edx, edx
je 0x5e6a3b
mov eax, edx
sub eax, esi
lea ecx, [ecx + eax*2]
xor eax, eax
test ecx, ecx
cmovs ecx, eax
lea eax, [ecx + ebp]
cmp edi, eax
jae 0x5e6a81
mov edi, dword [esp + 0xb4]
cmp esi, dword [esp + 0x24]
jb 0x5e6951
test ebx, ebx
je 0x5e6ad9
push ebx
push dword [esp + 0xa8]
lea eax, [esp + 0x34]
push dword [esp + 0x18]
push eax
call fcn.005e6060
add esp, 0x10
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
jmp 0x5e6aed
inc dword [esp + 0x74]
test edx, edx
je 0x5e6ac7
push esi
push ebx
push dword [esp + 0xac]
lea eax, [esp + 0x38]
push dword [esp + 0x1c]
push eax
call fcn.005e63a0
push dword [esp + 0x28]
xor ebx, ebx
push esi
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.005e61b0
mov esi, dword [esp + 0xd8]
mov ebp, eax
add esp, 0x24
mov dword [esp + 0x10], ebp
jmp 0x5e6861
mov ebp, dword [esp + 0x10]
add ebx, esi
mov esi, dword [esp + 0xb4]
jmp 0x5e6865
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
push dword [esp + 0x14]
xor ebx, ebx
push ebp
push eax
lea eax, [esp + 0x38]
push eax
call fcn.005e61b0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xe4]
mov dword [edi + 0xc], eax
lea eax, [esi + 1]
push eax
push ebp
lea eax, [esp + 0x44]
push edi
push eax
call fcn.005e63f0
mov esi, dword [esp + 0xd4]
add esp, 0x20
jmp 0x5e685d