Function at 0x1006a670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x24], 8
mov dword [ebp - 0xc1c], eax
lea eax, [edi + 0x10]
mov dword [ebp - 0xc24], ecx
mov dword [ebp - 0xc28], edi
mov dword [ebp - 0xc20], esi
jb 0x1006a6b4
mov eax, dword [eax]
push 0x104
lea ecx, [ebp - 0x814]
push ecx
push eax
call sym.HncFoundation.dll_HncPathToAbsolute
test esi, esi
je 0x1006a7d9
cmp word [esi + 2], bx
je 0x1006a7d9
push 0x100
lea eax, [ebp - 0x60c]
push eax
push 0x100
lea eax, [ebp - 0xa14]
push eax
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0
lea eax, [ebp - 0x814]
push 0
push eax
call dword [sym.imp.MSVCR120.dll__wsplitpath_s]
mov ecx, esi
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006a715
mov eax, dword [ebp - 0xc24]
sub ecx, edx
sar ecx, 1
test byte [eax + 8], 1
movzx edx, word [esi + ecx*2 - 2]
je 0x1006a740
xor eax, eax
mov word [ebp - 0x204], ax
jmp 0x1006a777
mov ax, word [ebp - 0x204]
cmp ax, 0x5c
je 0x1006a753
cmp ax, 0x2f
jne 0x1006a76b
mov ecx, 0x3f
lea esi, [ebp - 0x202]
lea edi, [ebp - 0x204]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x1006a740
mov esi, dword [ebp - 0xc20]
mov edi, dword [ebp - 0xc28]
cmp edx, 0x5c
je 0x1006a7ad
cmp edx, 0x2f
je 0x1006a7ad
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xa14]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
lea eax, [ebp - 0x40c]
push str._s_s_s_s
push eax
call fcn.10028380
add esp, 0x18
jmp 0x1006a7f5
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xa14]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
lea eax, [ebp - 0x40c]
push 0x100c0cd8
push eax
call fcn.10028380
add esp, 0x18
jmp 0x1006a7f5
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
mov esi, dword [ebp - 0xc1c]
push 0
push dword [edi + 8]
push esi
call dword [sym.imp.MSVCR120.dll_fseek]
movzx eax, byte [edi]
add esp, 0xc
dec eax
cmp eax, 3
ja case.default.0x1006a817
jmp dword [eax*4 + 0x1006a920]
push esi
push 0x1006a650
call sym.HncFoundation.dll__HncGZOpenReadOfCustomMem_8
mov edi, eax
test edi, edi
je 0x1006a8de
lea eax, [ebp - 0x40c]
push eax
call sym.HncFoundation.dll_HncPathCreate
test eax, eax
je 0x1006a8f5
push 0x100c0eb0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x1006a8d7
cmp dword [ebp - 0xc18], ebx
je 0x1006a8d7
mov ebx, dword [sym.imp.MSVCR120.dll_fwrite]
jmp 0x1006a880
push 0x400
lea eax, [ebp - 0xc14]
push eax
push edi
call sym.HncFoundation.dll__HncGZRead_12
push dword [ebp - 0xc18]
mov esi, eax
lea eax, [ebp - 0xc14]
push esi
push 1
push eax
call ebx
add esp, 0x10
test esi, esi
jg 0x1006a880
push edi
call sym.HncFoundation.dll__HncGZCloseRead_4
push dword [ebp - 0xc18]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
mov ebx, 0x8004
jmp case.0x1006a817.4
mov ebx, 0x8002
jmp case.0x1006a817.4
lea eax, [ebp - 0x40c]
push eax
call sym.HncFoundation.dll_HncPathCreate
test eax, eax
jne case.0x1006a817.4
mov ebx, 0x8001
jmp case.0x1006a817.4
mov ebx, 0x8003
jmp case.0x1006a817.4
mov ebx, 0x8000
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc