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

Disassembly:
sub esp, 0x38
cmp dword [esp + 0x40], 0
push ebx
push ebp
push esi
push edi
je 0x1005f645
cmp dword [esp + 0x54], 0
jne 0x1005f408
mov eax, 0x80070057
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14
mov esi, dword [esp + 0x4c]
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
add esi, 0x6c
test eax, 0xfffffff0
jne 0x1005f42b
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14
mov ebx, dword [esi + 0xc]
cmp ebx, dword [esi + 0x10]
jbe 0x1005f438
call fcn.10062881
mov edi, dword [esi + 0x10]
mov ebp, dword [esi]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
cmp dword [esi + 0xc], edi
jbe 0x1005f44f
call fcn.10062881
mov ecx, dword [esi]
mov dword [esp + 0x24], edi
lea edi, [esp + 0x40]
lea esi, [esp + 0x20]
mov dword [esp + 0x20], ecx
call fcn.1005ff00
xor edi, edi
xor esi, esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
test ebp, ebp
je 0x1005f47c
cmp ebp, dword [esp + 0x20]
je 0x1005f481
call fcn.10062881
cmp ebx, dword [esp + 0x24]
je 0x1005f4fc
test ebp, ebp
jne 0x1005f4ed
call fcn.10062881
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x1005f49c
call fcn.10062881
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add ecx, edi
adc eax, esi
cmp dword [esp + 0x5c], eax
jb 0x1005f4fc
ja 0x1005f4b4
cmp dword [esp + 0x58], ecx
jbe 0x1005f4fc
test ebp, ebp
jne 0x1005f4f2
call fcn.10062881
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x1005f4c9
call fcn.10062881
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
add edi, edx
adc esi, eax
test ebp, ebp
jne 0x1005f4f7
call fcn.10062881
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x1005f4e8
call fcn.10062881
add ebx, 0x10
jmp 0x1005f472
mov eax, dword [ebp]
jmp 0x1005f492
mov eax, dword [ebp]
jmp 0x1005f4bf
mov eax, dword [ebp]
jmp 0x1005f4de
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x34], esi
lea esi, [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], 0
call fcn.10019440
mov ecx, dword [eax + 8]
mov esi, dword [esp + 0x4c]
add ecx, edi
mov edi, dword [eax + 0xc]
adc edi, dword [esp + 0x34]
add esi, 0x6c
mov dword [esp + 0x3c], ebx
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], esi
cmp dword [esi + 0xc], ebx
jbe 0x1005f551
call fcn.10062881
mov edx, dword [esi]
lea esi, [esp + 0x38]
mov dword [esp + 0x40], edx
call fcn.1005fe90
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x1005f56e
cmp eax, dword [esp + 0x40]
je 0x1005f573
call fcn.10062881
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
cmp dword [esi + 4], ebx
je 0x1005f5a4
mov ebx, ebp
xor edx, edx
mov esi, ebx
add esi, eax
adc edx, ecx
cmp edx, edi
jb 0x1005f5a4
ja 0x1005f596
cmp esi, dword [esp + 0x10]
jbe 0x1005f5a4
mov edx, eax
sub edx, dword [esp + 0x10]
add edx, ebx
mov dword [esp + 0x1c], edx
sub ebp, edx
sub eax, dword [esp + 0x30]
lea esi, [esp + 0x28]
sbb ecx, dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ecx
call fcn.10019440
mov edx, dword [esp + 0x54]
mov eax, dword [eax]
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x38]
push ecx
push 1
add ebx, 8
push eax
mov eax, ebp
mov ecx, ebx
call fcn.100038a0
test eax, eax
jl 0x1005f6f9
cmp eax, 1
je 0x1005f6f9
cmp dword [esp + 0x1c], 0
jne 0x1005f651
mov ebx, dword [esp + 0x10]
add ebx, edi
mov edi, 0
adc edi, dword [esp + 0x34]
call fcn.10019440
mov edx, dword [eax + 0xc]
cmp edx, edi
jb 0x1005f636
ja 0x1005f627
mov eax, dword [eax + 8]
cmp eax, ebx
jbe 0x1005f636
lea esi, [esp + 0x28]
call fcn.10019440
mov ebx, dword [eax + 8]
mov edi, dword [eax + 0xc]
lea esi, [esp + 0x28]
call fcn.10019440
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14
mov edi, dword [esp + 0x20]
lea esi, [esp + 0x40]
call fcn.100056a0
mov esi, eax
lea edi, [esp + 0x38]
call fcn.1005ff40
test al, al
jne 0x1005f41c
xor edi, edi
lea esi, [esp + 0x38]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.10019440
mov edx, dword [esp + 0x54]
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
add ebp, edx
push ebp
lea ecx, [esp + 0x38]
push ecx
push 1
push eax
mov eax, dword [esp + 0x30]
mov ecx, ebx
call fcn.100038a0
cmp eax, edi
jl 0x1005f743
cmp eax, 1
je 0x1005f743
mov ebx, dword [esp + 0x10]
call fcn.10019440
mov edx, dword [eax + 0xc]
cmp edx, edi
jb 0x1005f6de
ja 0x1005f6cf
mov eax, dword [eax + 8]
cmp eax, ebx
jbe 0x1005f6de
lea esi, [esp + 0x38]
call fcn.10019440
mov ebx, dword [eax + 8]
mov edi, dword [eax + 0xc]
lea esi, [esp + 0x38]
call fcn.10019440
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14
cmp eax, 0x80070070
jne 0x1005f743
cmp dword [esp + 0x1c], 0
jne 0x1005f743
lea esi, [esp + 0x28]
call fcn.10019440
sub edi, dword [eax + 8]
mov esi, dword [esp + 0x50]
add edi, esi
push edi
mov edi, dword [esp + 0x50]
mov ecx, edi
call fcn.1005f310
test eax, eax
jl 0x1005f743
cmp eax, 1
je 0x1005f743
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push esi
push edi
call fcn.1005efb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14