Function at 0x4100e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0xc]
mov ecx, edi
mov dword [ebp - 8], edi
call fcn.00411140
mov eax, dword [ebx + 0x34]
cmp eax, 0xffffffff
je 0x410120
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebx + 0x38]
call fcn.0041c0a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebx + 0x34], 0xffffffff
cmp byte [ebx + 0x30], 0
je 0x410139
lea eax, [ebx + 0x38]
push eax
lea eax, [ebx + 0x3c]
push eax
call fcn.0040ed90
add esp, 8
mov dword [ebx + 0x34], eax
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x84]
push 0
lea eax, [esi + 1]
push eax
push 0
call fcn.0041c660
mov al, byte [ebx]
lea ecx, [ebp - 0x84]
and al, 1
movzx eax, al
push eax
call fcn.0041c860
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x84]
call fcn.0041d370
push 0
push 2
lea ecx, [ebp - 0x84]
call fcn.0041d560
mov esi, dword [ebp - 0x78]
lea ecx, [ebp - 0x84]
push 0
push 0
call fcn.0041d560
xor eax, eax
mov dword [ebp - 0x54], 0
add esi, 0xffffffea
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov word [ebp - 0x40], ax
mov dword [ebp + 0xc], esi
push esi
push 0
lea ecx, [ebp - 0x84]
call fcn.0041d560
push 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040e280
cmp dword [ebp - 0x54], 0x6054b50
je 0x4101ea
xor eax, eax
dec esi
mov word [ebp - 0x4a], ax
cmp esi, dword [ebp + 0xc]
jbe 0x4101b1
jmp 0x410296
mov si, word [ebp - 0x40]
test si, si
je 0x410296
push 0x7f
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00424040
movzx eax, si
lea ecx, [ebp - 0x84]
add esp, 0xc
mov esi, 0x7f
cmp eax, esi
cmovb esi, eax
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0041ccf0
push 3
lea eax, [ebp - 0x104]
mov byte [ebp + esi - 0x104], 0
push 0x43c758
push eax
call fcn.0041bfa0
add esp, 0xc
test eax, eax
jne 0x410296
cmp byte [ebp - 0x101], 0x32
mov byte [ebx + 9], 1
jne 0x410263
mov byte [ebx + 9], al
cmp byte [ebx + 8], 0
jne 0x410296
lea esi, [ebx + 4]
lea eax, [ebp - 0x100]
mov dword [esi], 0
push esi
push 0x43a804
push eax
call fcn.00423659
mov ecx, dword [esi]
add esp, 0xc
lea eax, [ecx - 1]
test ecx, eax
je 0x410296
mov dword [esi], 0
movzx esi, word [ebp - 0x4a]
mov dword [ebp - 0xc], esi
test esi, esi
jle 0x410593
push dword [ebp - 0x44]
lea ecx, [ebp - 0x84]
push 0
call fcn.0041d560
xor ecx, ecx
mov eax, esi
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040dba0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x4102f3
lea edx, [esi - 1]
mov ecx, eax
test edx, edx
js 0x4102f8
mov edi, 0xffff
dec edx
mov word [ecx], di
lea ecx, [ecx + 0x18]
jns 0x4102e5
lea edi, [ebx + 0xc]
jmp 0x4102f8
xor eax, eax
mov dword [ebp - 4], eax
xor ecx, ecx
cmp cx, word [ebp - 0x4a]
jae 0x410403
lea esi, [eax + 0xc]
xor edi, edi
lea esp, [esp]
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040e320
mov ax, word [ebp - 0x32]
test ax, ax
je 0x41033e
cmp ax, 0xe
je 0x41033e
push str.Opening_ZIP_file_with_unsupported_compression_type_n
call dword [sym.imp.tier0.dll_Warning]
add esp, 4
push 0x103
lea eax, [ebp - 0x207]
mov byte [ebp - 0x208], 0
push 0
push eax
call fcn.00424040
movzx eax, word [ebp - 0x20]
add esp, 0xc
mov ecx, 0x103
cmp eax, ecx
cmovb ecx, eax
lea eax, [ebp - 0x208]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.0041ccf0
lea eax, [ebp - 0x208]
push eax
call fcn.0041be90
add esp, 4
lea eax, [ebp - 0x208]
lea ecx, [ebp + 0xe]
push eax
call fcn.0041f5d0
mov ax, word [ebp + 0xe]
movzx edx, word [ebp - 0x1e]
movzx ecx, word [ebp - 0x20]
mov word [esi - 0xc], ax
add ecx, edx
mov eax, dword [ebp - 0x28]
mov dword [esi - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x12]
add eax, 0x1e
add eax, ecx
mov dword [esi - 8], eax
movzx eax, word [ebp - 0x32]
mov dword [esi + 8], eax
cmp byte [ebx + 9], 0
je 0x4103dd
movzx eax, word [ebp - 0x1c]
add eax, edx
jmp 0x4103df
xor eax, eax
push eax
push 1
lea ecx, [ebp - 0x84]
call fcn.0041d560
movzx eax, word [ebp - 0x4a]
inc edi
add esi, 0x18
cmp edi, eax
jl 0x410310
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test esi, esi
jle 0x410588
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov eax, 0xffff
lea ecx, [ebp + 0xa]
push 0x43a802
mov word [ebp - 0x34], ax
call fcn.0041f5d0
mov ax, word [ebx - 0x10]
mov ecx, dword [ebx - 8]
mov word [ebp - 0x34], ax
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx - 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], eax
test ecx, ecx
jle 0x41048e
push ecx
call fcn.0040dba0
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x84]
push dword [ebx - 0xc]
push 0
call fcn.0041d560
push dword [ebp - 0x30]
lea ecx, [ebp - 0x84]
push dword [ebp - 0x28]
call fcn.0041ccf0
jmp 0x410495
mov dword [ebp - 0x28], 0
lea eax, [ebp + 0xf]
mov ecx, edi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040f250
mov ecx, edi
call fcn.0040fde0
mov ecx, dword [edi + 4]
mov edx, eax
mov eax, dword [ebp - 8]
imul esi, edx, 0x34
add ecx, esi
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0xffffffff
mov dword [ecx], 0xffffffff
mov dword [ecx + 0xc], 0
cmp eax, 0xffffffff
je 0x4104ef
imul ecx, eax, 0x34
cmp byte [ebp + 0xf], 0
mov eax, dword [edi + 4]
je 0x4104e9
mov dword [ecx + eax], edx
jmp 0x4104f2
mov dword [ecx + eax + 4], edx
jmp 0x4104f2
mov dword [edi + 0x10], edx
push edx
mov ecx, edi
call fcn.0040f640
inc dword [edi + 0x14]
add esi, 0x10
add esi, dword [edi + 4]
je 0x41056c
mov eax, 0xffff
mov word [esi], ax
mov ax, word [ebp - 0x34]
mov word [esi], ax
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x30]
test eax, eax
jle 0x41054d
cmp dword [ebp - 0x28], 0
je 0x41054d
push eax
call fcn.0040dba0
mov dword [esi + 0xc], eax
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push eax
call fcn.004239f0
add esp, 0x10
jmp 0x410554
mov dword [esi + 0xc], 0
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41057c
push eax
call fcn.0040db80
add esp, 4
add ebx, 0x18
dec dword [ebp - 0xc]
jne 0x410411
push dword [ebp - 4]
call fcn.0040db80
add esp, 4
cmp dword [ebp - 0x7c], 0
pop edi
pop esi
pop ebx
jl 0x4105b3
mov edx, dword [ebp - 0x84]
test edx, edx
je 0x4105b3
mov eax, dword [sym.imp.tier0.dll_g_pMemAlloc]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esp, ebp
pop ebp
ret 8