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

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 0x7c]
sub eax, dword [ebx + 0x78]
add ebx, 0x6c
push ebp
push esi
push edi
mov dword [esp + 0x14], ebx
test eax, 0xfffffff0
jne 0x1005ed8e
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14
mov esi, dword [ebx + 0x10]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x24], edi
cmp dword [ebx + 0xc], esi
jbe 0x1005eda3
call fcn.10062881
mov eax, dword [ebx]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1005ee5b
call fcn.10062881
xor eax, eax
cmp esi, dword [eax + 0xc]
ja 0x1005edc2
call fcn.10062881
add esi, 0xfffffff0
mov dword [esp + 0x2c], esi
mov esi, dword [ebx + 0xc]
cmp esi, dword [ebx + 0x10]
jbe 0x1005edd6
call fcn.10062881
mov ebx, dword [ebx]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
test ebx, ebx
je 0x1005edea
cmp ebx, dword [esp + 0x28]
je 0x1005edef
call fcn.10062881
cmp esi, dword [esp + 0x2c]
je 0x1005ee6e
test ebx, ebx
jne 0x1005ee62
call fcn.10062881
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x1005ee0a
call fcn.10062881
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
add ecx, ebp
adc eax, edi
cmp dword [esp + 0x44], eax
jb 0x1005ee6e
ja 0x1005ee22
cmp dword [esp + 0x40], ecx
jb 0x1005ee6e
test ebx, ebx
jne 0x1005ee66
call fcn.10062881
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x1005ee37
call fcn.10062881
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
add ebp, ecx
adc edi, edx
test ebx, ebx
jne 0x1005ee6a
call fcn.10062881
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x1005ee56
call fcn.10062881
add esi, 0x10
jmp 0x1005ede0
mov eax, dword [eax]
jmp 0x1005edb8
mov eax, dword [ebx]
jmp 0x1005ee00
mov eax, dword [ebx]
jmp 0x1005ee2d
mov eax, dword [ebx]
jmp 0x1005ee4c
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], edi
test ebx, ebx
jne 0x1005eedd
call fcn.10062881
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x1005ee8b
call fcn.10062881
mov edx, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov ecx, dword [esp + 0x38]
add edx, ebp
adc esi, edi
test ecx, ecx
je 0x1005ef9d
cmp dword [esp + 0x44], esi
ja 0x1005ef9d
jb 0x1005eeb7
cmp dword [esp + 0x40], edx
jae 0x1005ef9d
xor eax, eax
xor ebx, ebx
mov edi, ecx
add ecx, dword [esp + 0x40]
adc eax, dword [esp + 0x44]
cmp eax, esi
jb 0x1005eee1
ja 0x1005eecf
cmp ecx, edx
jbe 0x1005eee1
mov eax, dword [esp + 0x40]
mov ebx, eax
sub ebx, edx
add ebx, edi
sub edi, ebx
jmp 0x1005eee5
mov eax, dword [ebx]
jmp 0x1005ee81
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
sub eax, ebp
sbb ecx, dword [esp + 0x24]
lea esi, [esp + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.10019440
mov esi, dword [esp + 0x3c]
mov eax, dword [eax]
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
push 1
push eax
add ebp, 8
push ebp
mov eax, edi
call fcn.10003760
test eax, eax
jl 0x1005ef9f
cmp eax, 1
je 0x1005ef9f
test ebx, ebx
je 0x1005ef9d
push ebx
add edi, esi
push 0
push edi
mov dword [esp + 0x44], edi
call fcn.10064e10
add esp, 0xc
lea edi, [esp + 0x28]
lea esi, [esp + 0x18]
call fcn.1005fec0
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x28]
call fcn.100056a0
mov esi, eax
lea edi, [esp + 0x18]
call fcn.1005ff40
test al, al
jne 0x1005ef9d
xor eax, eax
mov esi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.10019440
mov edx, dword [eax]
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ebp
lea eax, [esp + 0x48]
call fcn.10003730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14