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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa8
xor eax, eax
mov word [esp + 2], ax
mov word [esp], ax
test ecx, ecx
je 0x100063d3
mov esi, ecx
cmp dword [ecx + 0x14], 1
je 0x100063b2
test byte [esi + 0x50], 0xf
je 0x10005f65
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
je 0x10005f65
mov dword [esp + 0x10], 0
cmp dword [esi + 0xc8], 0
je 0x10006485
mov eax, 0x100147ec
mov dword [esi + 0x138], eax
lea ecx, [esp + 0x10]
mov dword [esi + 0x140], ecx
xor ecx, ecx
mov dword [esi + 0x13c], ecx
mov dword [esi + 0x144], ecx
mov dword [esi + 0x14c], eax
mov dword [esi + 0x150], ecx
mov dword [esi + 0x154], ecx
mov dword [esi + 0x148], 4
cmp dword [esi + 0x134], ecx
je 0x10005f08
mov dword [esi + 0x134], 0xfffffffe
jmp 0x100063b2
or byte [esi + 0x130], 1
lea edi, [esi + 0xc8]
cmp dword [esi + 0x124], 0
jne 0x10005f2b
cmp dword [esi + 0x128], 0
je 0x100063de
mov ecx, edi
call fcn.10006b32
mov dword [esi + 0x134], eax
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xc4]
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], eax
mov word [esi + 0xa8], 8
push dword [esi + 0x5c]
call sub.msvcrt.dll_strlen
add esp, 4
mov ebx, eax
mov ecx, dword [esi + 0x4e00c]
mov eax, esp
lea edx, [esp + 2]
push eax
call fcn.10006895
add esp, 4
lea eax, [esp + 0x90]
mov dword [eax], 0x8074b50
mov ecx, dword [esi + 0x70]
mov dword [eax + 4], ecx
movsd xmm0, qword [esi + 0x68]
movsd qword [eax + 8], xmm0
movsd xmm0, qword [esi + 0x60]
movsd qword [eax + 0x10], xmm0
push 0x18
push eax
push dword [esi + 0x7c]
push dword [esi + 0x78]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x18
jne 0x100063b2
lea eax, [esi + 0x68]
lea edi, [esi + 0x60]
xor ecx, ecx
add dword [esi + 0x78], 0x18
adc dword [esi + 0x7c], 0
mov ebp, 0xfffffffe
cmp ebp, dword [esi + 0x60]
mov edx, 0
sbb edx, dword [esi + 0x64]
mov edx, 0
cmovb edx, edi
cmp ebp, dword [esi + 0x68]
mov dword [esp + 0x4c], ebx
mov ebx, 0
sbb ebx, dword [esi + 0x6c]
cmovae eax, ecx
cmp ebp, dword [esi + 0xa0]
mov ebx, 0
sbb ebx, dword [esi + 0xa4]
lea ebx, [esi + 0xa0]
cmovae ebx, ecx
lea ecx, [esp + 0x74]
push ebx
push eax
call fcn.100068e6
add esp, 8
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x5c]
and ecx, 0xffff
mov dword [esp + 0x50], eax
mov dword [esp + 8], ecx
je 0x10006065
cmp byte [eax + ecx - 1], 0x2f
mov edx, dword [edi]
mov edi, dword [edi + 4]
jne 0x1000606a
mov eax, edx
or eax, edi
jne 0x1000606a
or byte [esi + 0x4e008], 0x10
xor edx, edx
xor edi, edi
jmp 0x1000606a
mov edx, dword [edi]
mov edi, dword [edi + 4]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edx
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x70]
movzx ebx, word [esi + 0xa8]
mov edx, dword [esi + 0xa0]
mov dword [esp + 0x6c], edx
mov edi, dword [esi + 0xa4]
mov edx, dword [esi + 0x4e008]
mov dword [esp + 0x68], edx
mov dword [esp + 0x48], eax
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov dword [esp + 0x70], eax
movzx eax, word [esp + 2]
mov word [esp + 0xc], ax
movzx eax, word [esp]
mov word [esp + 0xe], ax
mov dword [esp + 0x64], edi
test edi, edi
je 0x100060e4
mov edi, 3
mov eax, dword [esp + 0x48]
cmp dword [eax + 0x34], 0
je 0x100063af
movzx edx, word [esp + 0x44]
mov eax, dword [esp + 8]
mov dword [esp + 0x40], edx
lea edi, [eax + edx]
xor eax, eax
add edi, dword [esp + 4]
setb al
add edi, 0x2e
adc eax, 0
xor edx, edx
cmp ebp, edi
mov edi, 0
sbb edi, eax
mov edi, 0xf
jb 0x100063af
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov word [esp + 0x34], 0
mov dword [esp + 0x10], 0x2014b50
test bx, bx
mov eax, 0x14
cmove eax, edx
mov byte [esp + 0x16], al
mov word [esp + 0x18], 0x808
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bh
movzx eax, word [esp + 0xc]
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], ah
movzx eax, word [esp + 0xe]
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], ah
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x22], al
shr ecx, 0x18
mov byte [esp + 0x23], cl
neg dword [esp + 0x54]
mov eax, 0
sbb eax, eax
or eax, dword [esp + 0x58]
mov byte [esp + 0x24], al
mov byte [esp + 0x25], ah
mov ecx, eax
shr ecx, 0x10
mov byte [esp + 0x26], cl
shr eax, 0x18
mov byte [esp + 0x27], al
neg dword [esp + 0x5c]
mov eax, 0
sbb eax, eax
or eax, dword [esp + 0x60]
mov byte [esp + 0x28], al
mov byte [esp + 0x29], ah
mov ecx, eax
shr ecx, 0x10
mov byte [esp + 0x2a], cl
shr eax, 0x18
mov byte [esp + 0x2b], al
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], ah
mov eax, dword [esp + 0x44]
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], ah
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x36], cl
mov byte [esp + 0x37], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x38], al
shr ecx, 0x18
neg dword [esp + 0x64]
sbb edx, edx
mov byte [esp + 0x39], cl
or edx, dword [esp + 0x6c]
mov byte [esp + 0x3a], dl
mov byte [esp + 0x3b], dh
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3c], al
shr edx, 0x18
mov byte [esp + 0x3d], dl
mov eax, dword [esp + 4]
lea ebx, [eax + 0x2e]
mov edi, dword [esp + 0x48]
cmp dword [edi + 8], ebx
jae 0x10006250
mov ecx, esi
mov edx, edi
push 1
push ebx
call fcn.10005687
add esp, 8
test eax, eax
je 0x1000638b
mov dword [edi + 4], ebx
mov eax, dword [edi + 0xc]
imul ecx, eax, 0x2e
imul eax, dword [esp + 4]
add eax, dword [edi]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ebx, dword [edi + 4]
mov eax, dword [esp + 8]
lea ebp, [ebx + eax]
cmp dword [edi + 8], ebp
jae 0x10006295
mov ecx, esi
mov edx, edi
push 1
push ebp
call fcn.10005687
add esp, 8
test eax, eax
je 0x1000638b
mov dword [edi + 4], ebp
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x100062bc
mov eax, dword [edi + 0xc]
imul ebx, eax
add ebx, dword [edi]
imul ecx, eax
push ecx
push dword [esp + 0x54]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ebp, dword [edi + 4]
mov eax, dword [esp + 0x40]
lea ebx, [eax + ebp]
cmp dword [edi + 8], ebx
jae 0x100062df
mov ecx, esi
mov edx, edi
push 1
push ebx
call fcn.10005687
add esp, 8
test eax, eax
je 0x1000638b
mov dword [edi + 4], ebx
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x10006307
mov eax, dword [edi + 0xc]
imul ebp, eax
add ebp, dword [edi]
imul ecx, eax
push ecx
lea eax, [esp + 0x78]
push eax
push ebp
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ebx, dword [edi + 4]
mov eax, dword [edi + 8]
cmp eax, ebx
jae 0x10006324
mov ecx, esi
mov edx, edi
push 1
push ebx
call fcn.10005687
add esp, 8
test eax, eax
je 0x1000638b
mov eax, dword [edi + 8]
mov dword [edi + 4], ebx
cmp eax, ebx
jae 0x1000633e
mov ecx, esi
mov edx, edi
push 1
push ebx
call fcn.10005687
add esp, 8
test eax, eax
je 0x1000638b
mov dword [edi + 4], ebx
mov ebx, dword [edi + 0x14]
lea ebp, [ebx + 1]
cmp dword [edi + 0x18], ebp
jae 0x10006360
lea edx, [edi + 0x10]
mov ecx, esi
push 1
push ebp
call fcn.10005687
add esp, 8
test eax, eax
je 0x1000638b
mov dword [edi + 0x14], ebp
mov eax, dword [edi + 0x1c]
imul ebx, eax
add ebx, dword [edi + 0x10]
lea ecx, [esp + 0x70]
push eax
push ecx
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
inc dword [esi + 0x10]
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x100063b2
mov ebx, dword [esp + 4]
cmp dword [edi + 8], ebx
jae 0x100063a7
mov ecx, esi
mov edx, edi
push 0
push ebx
call fcn.10005687
add esp, 8
test eax, eax
je 0x100063aa
mov dword [edi + 4], ebx
mov edi, 0x10
mov dword [esi + 0x1c], edi
mov dword [esi + 0x4e00c], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x100063d3
push eax
call sub.msvcrt.dll_free
add esp, 4
mov dword [esi + 0x5c], 0
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0xb4fff
and eax, dword [esi + 0xd0]
mov ecx, edi
cmp eax, 0x4001
jne 0x100063f9
call fcn.10006ba7
jmp 0x100063fe
call fcn.10007183
test eax, eax
je 0x10006473
test byte [esi + 0xd1], 0x30
je 0x1000642d
mov ecx, dword [esi + 0xe0]
mov eax, dword [esi + 0x14c]
mov edx, 0x100147ec
sub eax, edx
push eax
call fcn.10007c08
add esp, 4
mov dword [esi + 0xe0], eax
cmp dword [esi + 0xe8], 0
jne 0x10005f2b
cmp dword [esi + 0x150], 0
jne 0x10005f2b
cmp dword [esi + 0x124], 0
jne 0x10005f2b
mov ecx, edi
mov edx, 4
call fcn.10007cff
test eax, eax
js 0x10006473
mov dword [esi + 0x128], 1
jmp 0x10005f2b
cmp dword [esi + 0x134], 1
jbe 0x10005f38
jmp 0x100063b2
push 0x1089
push str.src_compat_dvfs_stb_zip_v221.h
push str.d__m_pPut_buf_func
call dword [sym.imp.msvcrt.dll__assert]