Function at 0x4342a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ac
mov eax, dword [0x4af480]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea edx, [esp + 0x28]
push esi
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], 2
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [edi + 0x14]
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x48], xmm0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0
call fcn.00415540
lea eax, [esp + 0x18]
mov edx, ebx
push eax
push ecx
lea eax, [esp + 0x3b0]
mov ecx, edi
push eax
call fcn.00434070
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4345a3
lea eax, [esp + 0x158]
xorps xmm0, xmm0
push eax
push ebx
movlpd qword [esp + 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x43436e
mov ebx, dword [esp + 0x178]
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x434372
mov ebx, dword [esp + 0x28]
mov ecx, dword [edi + 0x10]
push ebx
push dword [esp + 0x18]
call fcn.00422230
test eax, eax
je 0x43439f
cmp dword [esp + 0x10], 0
jne 0x434391
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
xor eax, eax
mov ecx, 0x80000000
cmp byte [edi + 0x38], al
cmovne eax, ecx
or dword [esp + 0x10], eax
mov ebx, dword [esp + 0x24]
push edi
push 0x433f60
push ebx
call fcn.004473c0
push dword [esp + 0x18]
call fcn.00437a00
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x3ac]
push dword [esp + 0x24]
push ecx
push eax
push dword [esp + 0x24]
push ebx
call fcn.00446d60
test al, al
jne 0x4343f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
push 0
push ebx
call fcn.004473c0
cmp esi, 0xb7
jne 0x43452c
cmp byte [edi + 0x39], 0
jne case.0x4344dd.7
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x58]
mov dword [esp + 0x50], eax
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
mov word [esp + 0x64], ax
lea eax, [esp + 0x3b4]
push eax
push 0
push 0xfde9
mov dword [esp + 0x6c], 0
call ebx
mov dword [esp + 0x54], eax
test eax, eax
je 0x43449a
lea edx, [eax + 1]
cmp edx, 0x80
jbe 0x434480
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d5a7
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], ecx
jmp 0x434484
mov ecx, dword [esp + 0x50]
inc eax
push eax
push ecx
push 0xffffffffffffffff
lea eax, [esp + 0x3b4]
push eax
push 0
push 0xfde9
call ebx
push dword [esp + 0x50]
push 0x13b
push 0x13a
push dword [edi + 0x2c]
call fcn.00416070
mov ecx, dword [esp + 0x60]
add esp, 0x10
mov ebx, eax
test ecx, ecx
je 0x4344ce
lea eax, [esp + 0x58]
cmp ecx, eax
je 0x4344ce
push ecx
call fcn.00457d90
add esp, 4
lea eax, [ebx - 2]
cmp eax, 0xc
ja case.0x4344dd.3
movzx eax, byte [eax + 0x4345d0]
jmp dword [eax*4 + 0x4345b8]
mov byte [edi + 0x38], 1
or dword [esp + 0x10], 0x80000000
xor esi, esi
jmp 0x4343b0
mov byte [edi + 0x39], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
mov eax, 0x4c7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x43455d
cmp esi, 0x2713
je 0x434544
push dword [esp + 0x14]
push esi
push 0xc2
jmp 0x434596
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x3a8]
push eax
mov edx, ebx
call fcn.00432bc0
add esp, 4
cmp byte [edi + 0x3a], 0
je 0x4345a1
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4345a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
push esi
push 0x1a7
push dword [edi + 0x2c]
call fcn.004160c0
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0x4b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret