Function at 0x410c91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453dc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x258
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.GZIP_Decompress
lea ecx, [ebp - 0xe8]
call fcn.004117cd
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.0040650c
mov byte [ebp - 4], 1
push 1
lea eax, [ebp - 0xb4]
push eax
push 0x2e
lea ecx, [ebp - 0x24]
call fcn.004092d0
test eax, eax
jne 0x410db8
push dword [ebp + 8]
lea ecx, [ebp - 0x154]
call fcn.0040650c
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x84]
push str.Invalid_filename__expecting_.mbk_extention_on_file:
lea eax, [ebp - 0x15d]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x94]
call fcn.00406b07
push eax
push str.DECOMPRESS
push 0x95
push str.D:projectsutil_srcgzip.cpp
call fcn.00405307
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x15d]
call fcn.004066e8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x154]
call fcn.004066e8
and dword [ebp - 0x50], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.00411939
mov eax, dword [ebp - 0x50]
jmp 0x4114e7
lea ecx, [ebp - 0x34]
call fcn.0040661b
mov byte [ebp - 4], 4
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x24]
call fcn.004074fe
push str..mbk
lea ecx, [ebp - 0x34]
call fcn.00406b07
push eax
call fcn.0043f94f
pop ecx
pop ecx
test eax, eax
je 0x410eaf
push dword [ebp + 8]
lea ecx, [ebp - 0x142]
call fcn.0040650c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 5
push dword [ebp - 0xc8]
push str.Invalid_filename__expecting_.mbk_extention_on_file:
lea eax, [ebp - 0x10c]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x9c]
call fcn.00406b07
push eax
push str.DECOMPRESS
push 0x9b
push str.D:projectsutil_srcgzip.cpp
call fcn.00405307
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10c]
call fcn.004066e8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x142]
call fcn.004066e8
and dword [ebp - 0x68], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.00411939
mov eax, dword [ebp - 0x68]
jmp 0x4114e7
mov byte [ebp - 4], 7
mov byte [ebp - 4], 8
push 0x458764
push dword [ebp + 8]
call fcn.00431fff
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x410f97
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x166]
call fcn.0040650c
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 9
push dword [ebp - 0x70]
push str.gzopen_failed_to_open:
lea eax, [ebp - 0x11e]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x78]
call fcn.00406b07
push eax
push str.DECOMPRESS
push 0xa2
push str.D:projectsutil_srcgzip.cpp
call fcn.00405060
add esp, 0x14
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x11e]
call fcn.004066e8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x166]
call fcn.004066e8
and dword [ebp - 0xb0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.00411939
mov eax, dword [ebp - 0xb0]
jmp 0x4114e7
push 0x458780
lea ecx, [ebp - 0x24]
call fcn.00406b07
push eax
call fcn.0043ce86
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x411057
push dword [ebp - 0x14]
call fcn.00431ae2
pop ecx
push 0
lea eax, [ebp - 0x24]
push eax
push str.Unable_to_open:
lea eax, [ebp - 0x130]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xb8]
call fcn.00406b07
push eax
push str.DECOMPRESS
push 0xa8
push str.D:projectsutil_srcgzip.cpp
call fcn.00405060
add esp, 0x14
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x130]
call fcn.004066e8
and dword [ebp - 0x88], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.00411939
mov eax, dword [ebp - 0x88]
jmp 0x4114e7
lea ecx, [ebp - 0x44]
call fcn.0040661b
mov byte [ebp - 4], 0xc
push 0x186a0
lea ecx, [ebp - 0x44]
call fcn.004074bc
mov dword [ebp - 0x38], eax
xor eax, eax
inc eax
je 0x4112f6
push 0x186a0
push dword [ebp - 0x38]
push dword [ebp - 0x14]
call fcn.0043140f
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x411210
push dword [ebp - 0x18]
call fcn.0043cd4b
pop ecx
push dword [ebp - 0x14]
call fcn.00431ae2
pop ecx
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0040fa06
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xfa]
push eax
push str._for_file:
lea eax, [ebp - 0x103]
push eax
push 0
push 0
push dword [ebp - 0x28]
lea eax, [ebp - 0x127]
push eax
call fcn.00407857
add esp, 0x10
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0xd
push dword [ebp - 0x90]
push str.gzread_return
lea eax, [ebp - 0x115]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x98]
call fcn.00406c9e
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xc0]
call fcn.00406b8d
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0xbc]
call fcn.00406b07
push eax
push str.DECOMPRESS
push 0xb5
push str.D:projectsutil_srcgzip.cpp
call fcn.00405060
add esp, 0x14
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xfa]
call fcn.004066e8
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x103]
call fcn.004066e8
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x115]
call fcn.004066e8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x127]
call fcn.004066e8
and dword [ebp - 0xac], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.004066e8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.00411939
mov eax, dword [ebp - 0xac]
jmp 0x4114e7
cmp dword [ebp - 0x28], 0
jne 0x41121b
jmp 0x4112f6
push dword [ebp - 0x18]
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x38]
call fcn.0043cff4
add esp, 0x10
cmp eax, dword [ebp - 0x28]
je 0x4112f1
push dword [ebp - 0x18]
call fcn.0043cd4b
pop ecx
push dword [ebp - 0x14]
call fcn.00431ae2
pop ecx
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0040fa06
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x24]
push eax
push str.failed_to_write_to_file:
lea eax, [ebp - 0x139]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x4c]
call fcn.00406b07
push eax
push str.DECOMPRESS
push 0xbd
push str.D:projectsutil_srcgzip.cpp
call fcn.00405060
add esp, 0x14
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x139]
call fcn.004066e8
and dword [ebp - 0x54], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.004066e8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.00411939
mov eax, dword [ebp - 0x54]
jmp 0x4114e7
jmp 0x411073
push dword [ebp - 0x18]
call fcn.0043cd4b
pop ecx
and dword [ebp - 0x18], 0
push dword [ebp - 0x14]
call fcn.00431ae2
pop ecx
and dword [ebp - 0x14], 0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x411349
push dword [ebp + 8]
lea ecx, [ebp - 0xf1]
call fcn.0040650c
mov byte [ebp - 4], 0x12
push 0
lea eax, [ebp - 0xf1]
push eax
call fcn.0040fa06
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xf1]
call fcn.004066e8
mov dword [ebp - 0x5c], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.004066e8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.00411939
mov eax, dword [ebp - 0x5c]
jmp 0x4114e7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret