Function at 0x4b5a50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x526fe6
mov eax, dword fs:[0]
push eax
sub esp, 0x590
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x588], eax
push ebx
push esi
push edi
mov eax, dword [0x581500]
xor eax, esp
push eax
lea eax, [esp + 0x5a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], edx
call fcn.004b6230
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4b5ae8
mov ecx, dword [esp + 0x20]
call fcn.00409990
push 0x56c790
push 0x55d15c
mov edx, eax
call fcn.00411e80
add esp, 8
xor al, al
jmp 0x4b5f62
mov eax, dword [ebx + 4]
mov edx, dword [eax + 8]
lea ecx, [ebx + 4]
mov dword [ebx + 0x10], 0
call edx
lea ecx, [ebx + 0x18]
mov dword [ebx + 0x14], 0
call fcn.00402330
mov ecx, edi
call fcn.0040fe80
push eax
lea ecx, [esp + 0x60]
call fcn.00411610
mov dword [esp + 0x5a8], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4b5b30
mov byte [eax], 0
call fcn.004b5fe0
test al, al
je 0x4b5b86
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4b5b44
mov byte [eax], 1
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
push eax
mov ecx, ebx
mov eax, edi
call fcn.004b5f90
cmp byte [esp + 0x178], 0
mov bl, al
mov dword [esp + 0x5c], vtable.t_str.0
jne 0x4b5b7f
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x68]
cmp eax, ecx
je 0x4b5b7f
push eax
call fcn.004faac5
add esp, 4
mov al, bl
jmp 0x4b5f62
mov ebx, dword [esp + 0x20]
push ebx
mov ecx, esi
call fcn.004b6160
test al, al
jne 0x4b5bd2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b5ba4
mov dword [eax], 4
push str.ZipLib.dll
push ebx
call fcn.00409a40
add esp, 8
cmp byte [esp + 0x178], 0
mov bl, al
mov dword [esp + 0x5c], vtable.t_str.0
jne 0x4b5b7f
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x68]
cmp eax, edx
jmp 0x4b5b74
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x18e]
push ecx
mov byte [esp + 0x23], 0
mov word [esp + 0x190], ax
call fcn.004ff6c0
add esp, 0xc
cmp byte [edi + 0x11c], 0
je 0x4b5c05
add edi, 0xc
jmp 0x4b5c08
mov edi, dword [edi + 8]
mov edx, dword [esp + 0x30]
push ebx
add edi, 4
push edx
lea ebx, [esp + 0x1f]
lea ecx, [esp + 0x18c]
call fcn.004a3220
test al, al
jne 0x4b5c51
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b5c33
mov dword [eax], 5
mov ecx, dword [esp + 0x20]
push 0x56c7c8
call fcn.00402ea0
lea ecx, [esp + 0x5c]
call fcn.00411680
xor al, al
jmp 0x4b5f62
xor ebx, ebx
lea eax, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
call fcn.004ae650
mov byte [esp + 0x5a8], 1
lea eax, [esi + 0x134]
cmp byte [esi + 0x244], bl
jne 0x4b5c80
mov eax, dword [esi + 0x130]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
add eax, 4
push eax
lea eax, [esp + 0x188]
push eax
push edi
push ecx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x44]
call fcn.004a3010
test al, al
jne 0x4b5cc3
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4b5cb5
mov dword [eax], 6
push 0x56c7e8
mov ecx, edi
call fcn.00402ea0
jmp 0x4b5d33
mov ebx, dword [esp + 0x28]
test ebx, ebx
jne 0x4b5cd3
mov eax, dword [esp + 0x18]
test eax, eax
jmp 0x4b5cad
lea ecx, [esi + 0x128]
call fcn.00411da0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
push 0
lea edx, [esp + 0x28]
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x4c]
call edx
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x40]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
call fcn.004aec60
cmp esi, 2
jge 0x4b5d7c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b5d21
mov dword [eax], 7
mov ecx, dword [esp + 0x20]
push 0x56c810
call fcn.00402ea0
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x17], 0
je 0x4b5d48
lea eax, [esp + 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x56c838
mov ecx, edi
call fcn.00409990
mov esi, eax
mov eax, dword [esp + 0x30]
call fcn.0040a800
mov eax, vtable.VarBase.0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], eax
call fcn.00411680
xor al, al
jmp 0x4b5f62
cmp byte [ebx], 0xff
mov byte [esp + 0x1f], 1
jne 0x4b5d9a
cmp byte [ebx + 1], 0xfe
jne 0x4b5d9a
lea edi, [ebx + 2]
lea eax, [esi - 2]
mov dword [esp + 0x2c], edi
shr eax, 1
jmp 0x4b5dd3
lea ecx, [esi + esi + 2]
push ecx
mov byte [esp + 0x23], 0
call fcn.004faba2
add esp, 4
push esi
mov edi, eax
push edi
push esi
push ebx
push 0
push 0x3a8
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jge 0x4b5dc9
xor eax, eax
xor edx, edx
mov word [edi + eax*2], dx
mov edi, dword [esp + 0x2c]
add eax, 0xfffffffd
xor ebx, ebx
mov dword [esp + 0x58], eax
test eax, eax
jle 0x4b5f12
lea eax, [edi + 2]
mov dword [esp + 0x18], eax
jmp 0x4b5df0
cmp word [edi + ebx*2], 0x2e
jne 0x4b5f02
mov esi, dword [esp + 0x18]
call fcn.004b5900
test al, al
je 0x4b5efe
mov eax, ebx
test ebx, ebx
jl 0x4b5e2d
movzx ecx, word [edi + eax*2]
cmp cx, 0x2c
je 0x4b5e2d
cmp cx, 0x20
je 0x4b5e2d
cmp cx, 0x3d
je 0x4b5e2d
sub eax, 1
jns 0x4b5e12
add dword [esp + 0x18], 6
mov esi, ebx
sub esi, eax
add esi, 3
add ebx, 3
cmp esi, 0x104
jae 0x4b5efe
push esi
lea ecx, [edi + eax*2 + 2]
push ecx
lea edx, [esp + 0x394]
push 0x104
push edx
call fcn.004fb3f9
add esp, 0x10
xor eax, eax
lea ecx, [esp + 0x38c]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x188]
push edx
mov word [esp + esi*2 + 0x394], ax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x48]
lea ecx, [esp + 0x34]
call fcn.004a3010
test al, al
je 0x4b5efe
mov esi, dword [esp + 0x24]
cmp esi, 0x80000000
ja 0x4b5efe
test esi, esi
je 0x4b5efe
lea edx, [esp + 0x38c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x44]
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x4c]
call eax
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x40]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ecx
call fcn.004aec60
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
push edx
push esi
call fcn.004a31d0
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
add dword [esp + 0x18], 2
inc ebx
cmp ebx, dword [esp + 0x58]
jl 0x4b5df0
cmp byte [esp + 0x1f], 0
jne 0x4b5f22
push edi
call fcn.004faac5
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x34]
push esi
call fcn.004a31d0
cmp byte [esp + 0x17], 0
je 0x4b5f4a
lea ecx, [esp + 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, vtable.VarBase.0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], eax
call fcn.00411680
mov al, 1
mov ecx, dword [esp + 0x5a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x588]
xor ecx, esp
call fcn.004fa259
mov esp, ebp
pop ebp
ret 0x14