Function at 0x446e8c
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x71c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [esp + 0x20], ecx
je 0x447916
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x447916
push edi
mov ebx, 0x104
lea eax, [esp + 0x524]
push ebx
push eax
lea ecx, [esp + 0x51c]
call fcn.00403089
push edi
push ebx
lea eax, [esp + 0x310]
mov esi, 0x50a84c
push eax
lea ecx, [esp + 0x304]
mov dword [esp + 0x51c], esi
call fcn.00403089
push 0x5c
lea ecx, [esp + 0x2fc]
mov dword [esp + 0x2fc], esi
call fcn.00404415
push str..zip
lea ecx, [esp + 0x514]
mov esi, eax
call fcn.004035e9
test esi, esi
js 0x446f82
mov ecx, dword [esp + 0x300]
lea edx, [esi + 1]
test ecx, ecx
je 0x446f82
test edx, edx
je 0x446f82
mov esi, dword [esp + 0x2fc]
test esi, esi
je 0x446f82
cmp edx, ecx
cmova edx, ecx
cmp edx, ecx
jae 0x446f73
mov eax, ecx
xor ebx, ebx
sub eax, edx
je 0x446f73
lea edi, [edx + edx]
mov ax, word [edi + esi]
lea edi, [edi + 2]
mov word [esi + ebx*2], ax
inc ebx
mov ecx, dword [esp + 0x300]
mov eax, ecx
mov esi, dword [esp + 0x2fc]
sub eax, edx
cmp ebx, eax
jb 0x446f4e
mov edi, dword [ebp + 0xc]
sub ecx, edx
xor eax, eax
mov dword [esp + 0x300], ecx
mov word [esi + ecx*2], ax
or dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x44]
call fcn.00403b9b
or dword [esp + 0x258], 0xffffffff
lea eax, [esp + 0x260]
push 0x90
push 0
push eax
mov dword [esp + 0x260], 0x4f98e8
call fcn.0041d750
and dword [esp + 0x2fc], 0
lea ecx, [esp + 0x4c]
add esp, 0xc
push dword [esp + 0x514]
call fcn.0044d348
test al, al
je 0x4471b2
push dword [esp + 0x2fc]
lea ecx, [esp + 0x44]
push edi
call fcn.0044d3b3
test al, al
jne 0x4471d5
mov eax, dword [esp + 0x258]
cmp eax, 0xffffffff
je 0x4471a5
cmp byte [esp + 0x268], 0
je 0x44701d
lea ecx, [esp + 0x40]
call fcn.0044c8c1
mov eax, dword [esp + 0x258]
cmp eax, 0xffffffff
je 0x4471a5
push 1
lea ecx, [esp + 0x28]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [esp + 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
jne 0x44705c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4471a5
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, esi
and eax, ebx
cmp eax, 0xffffffff
je 0x4471a5
lea ecx, [esp + 0x40]
call fcn.0044c882
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x447083
cmp esi, 0xffffffff
jb 0x4470bd
push ebx
push esi
lea eax, [esp + 0x28]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x4c]
movlpd qword [esp + 0x2c], xmm0
call fcn.0044d1e1
test al, al
je 0x4471a5
push dword [esp + 0x24]
lea ecx, [esp + 0x44]
push dword [esp + 0x24]
call fcn.0044d18c
test al, al
je 0x4471a5
push 4
pop edi
push edi
push 0x6054b50
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push 2
push 0
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push 2
push 0
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push 2
push dword [esp + 0x2f0]
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push 2
push dword [esp + 0x2f0]
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push edi
push dword [esp + 0x14]
lea ecx, [esp + 0x48]
call fcn.0044d0f4
test ebx, ebx
jne 0x44712a
cmp esi, 0xffffffff
jae 0x44712a
mov dword [esp + 0x1c], ebx
jmp 0x447133
or esi, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push edi
push esi
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push 2
push ebx
lea ecx, [esp + 0x48]
call fcn.0044d0f4
cmp dword [esp + 0x258], 0xffffffff
je 0x447169
push dword [esp + 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esp + 0x258], 0xffffffff
cmp dword [esp + 0x2cc], 0
je 0x447187
push dword [esp + 0x2cc]
call fcn.0041b848
pop ecx
mov dword [esp + 0x2cc], ebx
lea ecx, [esp + 0x40]
call fcn.0044c7cd
mov byte [esp + 0x268], bl
mov dword [esp + 0x2e8], ebx
mov dword [esp + 0x2ec], ebx
push dword [esp + 0x514]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x40]
call fcn.0044d304
mov eax, esi
mov edx, edi
jmp 0x44791a
mov edx, dword [esp + 0x258]
push 4
pop edi
cmp edx, 0xffffffff
je 0x44783b
cmp byte [esp + 0x268], 0
je 0x4476c0
and dword [esp + 0x274], 0
mov ecx, dword [esp + 0x2b4]
cmp dword [esp + 0x284], 0
jne 0x447277
mov esi, dword [esp + 0x2cc]
xor eax, eax
mov dword [esp + 0x10], eax
cmp edx, 0xffffffff
je 0x447255
test esi, esi
je 0x447255
test ecx, ecx
je 0x447255
push eax
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x2cc]
neg eax
mov ecx, dword [esp + 0x2b4]
mov edx, dword [esp + 0x258]
sbb eax, eax
and eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x4476c0
and dword [esp + 0x2b4], 0
mov dword [esp + 0x284], 0x100000
mov dword [esp + 0x280], esi
mov eax, dword [esp + 0x28c]
lea ecx, [esp + 0x270]
mov esi, dword [esp + 0x288]
mov edx, edi
mov dword [esp + 0x1c], eax
call fcn.00455861
mov edx, dword [esp + 0x288]
mov ebx, eax
mov ecx, dword [esp + 0x2b4]
sub edx, esi
add ecx, edx
mov dword [esp + 0x2b4], ecx
test ebx, ebx
jne 0x4472c2
mov edx, dword [esp + 0x258]
jmp 0x447205
xor eax, eax
cmp ebx, 1
cmovne eax, ebx
test eax, eax
je 0x4472d7
cmp eax, 2
jne 0x4476b9
test ecx, ecx
je 0x447329
mov edx, dword [esp + 0x258]
xor eax, eax
mov dword [esp + 0x10], eax
cmp edx, 0xffffffff
je 0x447321
cmp dword [esp + 0x2cc], eax
je 0x447321
push eax
lea eax, [esp + 0x14]
push eax
push ecx
push dword [esp + 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x2b4]
neg eax
mov edx, dword [esp + 0x258]
sbb eax, eax
and eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x4476c0
lea ecx, [esp + 0x270]
call fcn.0045610d
and dword [esp + 0x2b0], 0
test eax, eax
je 0x44734a
cmp eax, 2
jne 0x4476b9
push edi
push dword [esp + 0x2d8]
lea ecx, [esp + 0x48]
push 0x10
call fcn.0044d165
cmp dword [esp + 0x27c], 0
ja 0x4473c2
jb 0x447373
cmp dword [esp + 0x278], 0xffffffff
jae 0x4473c2
cmp dword [esp + 0x28c], 0
ja 0x4473c2
jb 0x447389
cmp dword [esp + 0x288], 0xffffffff
jae 0x4473c2
push edi
push dword [esp + 0x28c]
lea ecx, [esp + 0x48]
push 0x14
call fcn.0044d165
push edi
push dword [esp + 0x27c]
lea ecx, [esp + 0x48]
push 0x18
call fcn.0044d165
push dword [esp + 0x2c0]
push dword [esp + 0x2c0]
jmp 0x447486
push edi
push 0xffffffffffffffff
push 0x14
pop esi
push esi
lea ecx, [esp + 0x4c]
call fcn.0044d165
push edi
push 0xffffffffffffffff
push 0x18
lea ecx, [esp + 0x4c]
call fcn.0044d165
push 2
push 0
push 1
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.0044d12a
test al, al
je 0x4476b9
push 2
push 0
push 0x10
push 0x12
lea eax, [esp + 0x3e]
push eax
call fcn.0044d12a
test al, al
je 0x4476b9
push 8
push dword [esp + 0x280]
lea eax, [esp + 0x38]
push dword [esp + 0x280]
push 0x10
push eax
call fcn.0044d12a
test al, al
je 0x4476b9
push 8
push dword [esp + 0x290]
lea eax, [esp + 0x40]
push dword [esp + 0x290]
push 8
push eax
call fcn.0044d12a
test al, al
je 0x4476b9
push 2
push esi
push 0x1e
lea ecx, [esp + 0x4c]
call fcn.0044d165
push dword [esp + 0x2c0]
lea ecx, [esp + 0x44]
push dword [esp + 0x2c0]
call fcn.0044c7fb
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x48]
call fcn.0044c7fb
cmp dword [esp + 0x2bc], 0
je 0x4474ae
push dword [esp + 0x2bc]
call fcn.0041b848
and dword [esp + 0x2c0], 0
pop ecx
mov edx, dword [esp + 0x258]
cmp edx, 0xffffffff
je 0x44783b
push 1
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 0
push edx
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x4474f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4476b9
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, esi
and eax, ebx
cmp eax, 0xffffffff
je 0x4476b9
mov edx, dword [esp + 0x258]
cmp edx, 0xffffffff
je 0x44783b
mov eax, dword [esp + 0x2b8]
lea ecx, [esp + 0x14]
and dword [esp + 0x14], 0
add eax, 0xe
push 0
push ecx
push eax
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x447552
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4476b9
mov eax, dword [esp + 0x10]
and eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4476b9
push edi
push dword [esp + 0x2d8]
lea ecx, [esp + 0x48]
call fcn.0044d0f4
cmp byte [esp + 0x2e4], 0
lea ecx, [esp + 0x40]
push edi
jne 0x4475a1
push dword [esp + 0x28c]
call fcn.0044d0f4
push edi
push dword [esp + 0x27c]
lea ecx, [esp + 0x48]
call fcn.0044d0f4
jmp 0x447663
push 0xffffffffffffffff
call fcn.0044d0f4
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0x48]
call fcn.0044d0f4
mov edx, dword [esp + 0x258]
cmp edx, 0xffffffff
je 0x44783b
mov ecx, dword [esp + 0x2b8]
mov eax, dword [esp + 0x2e0]
add ecx, 0x1e
and dword [esp + 0x14], 0
add eax, ecx
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x44760a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4476b9
mov eax, dword [esp + 0x10]
and eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4476b9
push 2
push 1
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push 2
push 0x10
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push 8
push dword [esp + 0x280]
lea ecx, [esp + 0x48]
push dword [esp + 0x280]
call fcn.0044d0b5
push 8
push dword [esp + 0x290]
lea ecx, [esp + 0x48]
push dword [esp + 0x290]
call fcn.0044d0b5
mov edx, dword [esp + 0x258]
cmp edx, 0xffffffff
je 0x44783b
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x14], esi
push eax
push esi
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4476a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4476b9
mov eax, dword [esp + 0x10]
and eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4476b9
inc dword [esp + 0x2ec]
mov byte [esp + 0x268], 0
mov edx, dword [esp + 0x258]
cmp edx, 0xffffffff
je 0x44783b
push 1
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 0
push edx
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x4476ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44783b
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, esi
and eax, ebx
cmp eax, 0xffffffff
je 0x44783b
lea ecx, [esp + 0x40]
call fcn.0044c882
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x447726
cmp esi, 0xffffffff
jb 0x447760
push ebx
push esi
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x4c]
movlpd qword [esp + 0x24], xmm0
call fcn.0044d1e1
test al, al
je 0x44783b
push dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push dword [esp + 0x1c]
call fcn.0044d18c
test al, al
je 0x44783b
push edi
push 0x6054b50
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push 2
push 0
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push 2
push 0
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push 2
push dword [esp + 0x2f0]
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push 2
push dword [esp + 0x2f0]
lea ecx, [esp + 0x48]
call fcn.0044d0f4
push edi
push dword [esp + 0x14]
lea ecx, [esp + 0x48]
call fcn.0044d0f4
test ebx, ebx
jne 0x4477c4
cmp esi, 0xffffffff
jb 0x4477c7
or esi, 0xffffffff
push edi
push esi
lea ecx, [esp + 0x48]
xor ebx, ebx
call fcn.0044d0f4
push 2
push ebx
lea ecx, [esp + 0x48]
call fcn.0044d0f4
cmp dword [esp + 0x258], 0xffffffff
je 0x4477ff
push dword [esp + 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esp + 0x258], 0xffffffff
cmp dword [esp + 0x2cc], 0
je 0x44781d
push dword [esp + 0x2cc]
call fcn.0041b848
pop ecx
mov dword [esp + 0x2cc], ebx
lea ecx, [esp + 0x40]
call fcn.0044c7cd
mov byte [esp + 0x268], bl
mov dword [esp + 0x2e8], ebx
mov dword [esp + 0x2ec], ebx
mov ecx, dword [esp + 0x2fc]
test ecx, ecx
je 0x4478e6
push dword [esp + 0x304]
push dword [ebp + 8]
call fcn.0042a771
mov ebx, eax
mov eax, dword [esp + 0x30c]
pop ecx
pop ecx
cmp ebx, eax
jb 0x44786b
lea ebx, [eax - 1]
lea esi, [ebx + ebx]
push esi
push dword [ebp + 8]
push dword [esp + 0x304]
call fcn.0041d1d0
mov eax, dword [esp + 0x308]
xor ecx, ecx
mov dword [esp + 0x30c], ebx
add esp, 0xc
mov word [eax + esi], cx
mov ecx, dword [esp + 0x2fc]
test ecx, ecx
je 0x4478e6
mov edx, dword [esp + 0x300]
lea eax, [edx + 4]
cmp eax, dword [esp + 0x304]
jae 0x4478e6
mov dword [ecx + edx*2], 0x7a002e
mov dword [ecx + edx*2 + 4], 0x700069
mov ecx, dword [esp + 0x300]
mov eax, dword [esp + 0x2fc]
add ecx, edi
mov dword [esp + 0x300], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [esp + 0x2fc]
mov edx, dword [esp + 0x20]
push str.file
push dword [esp + 0x518]
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax + 0x2c]
call eax
push dword [esp + 0x514]
mov esi, eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4471c3
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc