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

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
cmp esi, edi
je 0x1000c184
cmp dword [esi + 0x2c], edi
jne 0x1000c191
pop edi
mov eax, 0xffffff9a
pop esi
add esp, 8
ret 0xc
cmp dword [esi + 0x80], 8
push ebx
push ebp
mov dword [esi + 0x34], edi
jne 0x1000c1f1
cmp dword [esi + 0x84], edi
jne 0x1000c1f1
lea ebx, [esi + 0x30]
lea ebx, [ebx]
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x1000c1cc
call fcn.1000bf70
lea eax, [esi + 0x88]
mov dword [esi + 0x40], 0x4000
mov dword [esi + 0x3c], eax
mov ebp, dword [esi + 0x44]
push 4
push ebx
call sym.zlibwapi.dll_deflate
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x6c]
sub ecx, ebp
mov edi, eax
add edx, ecx
test edi, edi
mov dword [esi + 0x6c], edx
je 0x1000c1b0
cmp edi, 1
jne 0x1000c1f1
xor edi, edi
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x1000c208
test edi, edi
jne 0x1000c208
call fcn.1000bf70
cmp eax, 0xffffffff
jne 0x1000c208
or edi, eax
cmp dword [esi + 0x80], 8
jne 0x1000c22d
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x1000c24a
lea edx, [esi + 0x30]
push edx
call sym.zlibwapi.dll_deflateEnd
mov edi, eax
mov dword [esi + 0x68], 0
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x1000c24a
mov eax, dword [esi + 0x408c]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
jmp 0x1000c252
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x40a4]
add ebx, ecx
mov ecx, dword [esi + 0x74]
mov ebp, eax
add ecx, 0x10
mov byte [ecx], al
shr ebp, 8
mov eax, ebp
mov byte [ecx + 1], al
shr eax, 8
mov byte [ecx + 2], al
shr eax, 8
mov byte [ecx + 3], al
shr eax, 8
test eax, eax
je 0x1000c288
mov dword [ecx], 0xffffffff
mov ecx, dword [esi + 0x74]
add ecx, 0x14
mov eax, ebx
shr eax, 8
mov dword [esp + 0x1c], eax
mov byte [ecx + 1], al
shr eax, 8
mov byte [ecx + 2], al
shr eax, 8
mov byte [ecx + 3], al
shr eax, 8
test eax, eax
mov byte [ecx], bl
je 0x1000c2b5
mov dword [ecx], 0xffffffff
cmp dword [esi + 0x5c], 1
jne 0x1000c2c8
mov eax, dword [esi + 0x74]
add eax, 0x24
mov byte [eax], 1
mov byte [eax + 1], 0
mov ecx, dword [esi + 0x74]
add ecx, 0x18
mov eax, edx
shr eax, 8
mov dword [esp + 0x10], eax
mov byte [ecx + 1], al
shr eax, 8
mov byte [ecx + 2], al
shr eax, 8
mov byte [ecx + 3], al
shr eax, 8
test eax, eax
mov byte [ecx], dl
je 0x1000c2f5
mov dword [ecx], 0xffffffff
test edi, edi
jne 0x1000c30f
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x74]
push eax
push ecx
lea edx, [esi + 0x24]
push edx
call fcn.1000b920
add esp, 0xc
mov edi, eax
mov eax, dword [esi + 0x74]
push eax
call sub.CRTDLL.dll_free
add esp, 4
test edi, edi
jne 0x1000c43a
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call dword [esi + 0xc]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x70]
push edi
add eax, 0xe
push eax
push ecx
push edx
call dword [esi + 0x10]
add esp, 0x18
or edi, 0xffffffff
test eax, eax
jne 0x1000c41e
mov al, byte [esp + 0x24]
mov ecx, dword [esi + 0x20]
mov byte [esp + 0x24], al
mov eax, ebp
mov byte [esp + 0x25], al
shr eax, 8
mov byte [esp + 0x26], al
shr eax, 8
mov byte [esp + 0x27], al
shr eax, 8
test eax, eax
je 0x1000c37d
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0x1c]
push 4
lea edx, [esp + 0x28]
push edx
push ecx
push eax
call dword [esi + 8]
add esp, 0x10
cmp eax, 4
jne 0x1000c41e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x20]
mov byte [esp + 0x25], al
shr eax, 8
mov byte [esp + 0x26], al
shr eax, 8
mov byte [esp + 0x27], al
shr eax, 8
test eax, eax
mov byte [esp + 0x24], bl
je 0x1000c3c0
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0x1c]
push 4
lea edx, [esp + 0x28]
push edx
push ecx
push eax
call dword [esi + 8]
add esp, 0x10
cmp eax, 4
jne 0x1000c41e
mov eax, dword [esp + 0x10]
mov dl, byte [esp + 0x20]
mov ecx, dword [esi + 0x20]
mov byte [esp + 0x25], al
shr eax, 8
mov byte [esp + 0x26], al
shr eax, 8
mov byte [esp + 0x27], al
shr eax, 8
test eax, eax
mov byte [esp + 0x24], dl
je 0x1000c403
mov dword [esp + 0x24], edi
push 4
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
push ecx
call dword [esi + 8]
mov edi, eax
sub edi, 4
add esp, 0x10
neg edi
sbb edi, edi
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
push 0
push edx
push eax
push ecx
call dword [esi + 0x10]
add esp, 0x10
test eax, eax
je 0x1000c43a
or edi, 0xffffffff
mov eax, dword [esi + 0x40b0]
pop ebp
inc eax
mov dword [esi + 0x40b0], eax
pop ebx
mov eax, edi
pop edi
mov dword [esi + 0x2c], 0
pop esi
add esp, 8
ret 0xc