Function at 0x402430
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x244
mov esi, ecx
mov edi, dword [ebp + 0x10]
mov eax, dword [0x453010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x230], 0
test edx, edx
jne 0x402559
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x40250f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x218], 0xef
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x208], 0
lea edx, [ebp - 0x218]
mov ecx, edi
call fcn.00402200
cmp byte [ebp - 0x205], 0
jns 0x4024db
push dword [ebp - 0x210]
call fcn.00405d0c
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
cmp byte [ebp - 0x22d], 0
jns 0x4024f8
push dword [ebp - 0x238]
call fcn.00405d0c
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406639
mov eax, esi
add esp, 0x244
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, eax
dec eax
lea edi, [ebp - 0x238]
mov ecx, edi
push 0
push eax
call fcn.00443d40
cmp byte [ebp - 0x22d], 0
jns 0x402531
mov edi, dword [ebp - 0x238]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
mov edi, dword [ebp + 0x10]
jne 0x402679
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x218], 0xf4
jmp 0x402493
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.00409860
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov dword [ebp - 0x228], 0xffffffff
mov dword [ebp - 0x224], 0xffffffff
mov dword [ebp - 0x220], 0xffffffff
lea ebx, [ebp - 0x228]
mov ecx, ebx
push edi
call fcn.0042bea0
movzx eax, byte [ebp - 0x21d]
test al, al
js 0x4025bc
and eax, 0x7f
jmp 0x4025c8
mov eax, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x228]
test eax, eax
mov edi, dword [ebp + 0x10]
je 0x4025fa
add eax, eax
nop word cs:[eax + eax]
test eax, eax
je 0x4025fa
lea edx, [eax - 2]
cmp word [ebx + eax - 2], 0x5c
mov eax, edx
jne 0x4025e0
cmp edx, 0xfffffffe
jne 0x40276a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x24c], 0xfe
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x23c], 0
lea edx, [ebp - 0x24c]
mov ecx, edi
call fcn.00402200
cmp byte [ebp - 0x239], 0
jns 0x402652
push dword [ebp - 0x244]
call fcn.00405d0c
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov bl, 1
cmp byte [ebp - 0x21d], 0
jns 0x402671
push dword [ebp - 0x228]
call fcn.00405d0c
add esp, 4
test bl, bl
jne 0x4024e1
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 4]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
lea ecx, [ebp - 0x218]
lea edx, [ebp - 0x238]
push edi
push eax
push dword [ebp + 8]
call fcn.00402ab0
add esp, 0xc
mov dword [ebp - 0x250], ebx
mov ecx, ebx
lea ebx, [ebp - 0x218]
push ebx
call fcn.0042c360
cmp byte [ebp - 0x20d], 0
js 0x402747
mov word [ebp - 0x218], 0
mov byte [ebp - 0x20d], 0
mov ecx, dword [ebp - 0x214]
xor eax, eax
mov edx, eax
and dl, 0x7f
test al, al
movzx edx, dl
cmovs edx, ecx
test edx, edx
mov edi, dword [ebp + 0x10]
je 0x402721
test al, al
jns 0x4026f5
mov ebx, dword [ebp - 0x218]
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x20d], 0
jns 0x402733
mov eax, dword [ebp - 0x218]
mov word [eax], 0
mov dword [ebp - 0x214], 0
movzx eax, byte [ebp - 0x20d]
test al, al
jns 0x402733
push dword [ebp - 0x218]
call fcn.00405d0c
add esp, 4
movzx eax, byte [esi + 0xf]
test al, al
js 0x4027d3
and eax, 0x7f
jmp 0x4027d6
mov eax, dword [ebp - 0x218]
mov word [eax], 0
mov dword [ebp - 0x214], 0
xor ecx, ecx
movzx eax, byte [ebp - 0x20d]
jmp 0x4026d7
sar edx, 1
inc edx
lea eax, [ebp - 0x229]
lea edi, [ebp - 0x228]
lea ecx, [ebp - 0x24c]
push eax
push edx
push 0
push edi
call fcn.004058c0
cmp byte [ebp - 0x22d], 0
jns 0x4027a0
push dword [ebp - 0x238]
call fcn.00405d0c
add esp, 4
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x230], eax
movsd xmm0, qword [ebp - 0x24c]
movsd qword [ebp - 0x238], xmm0
xor ebx, ebx
mov edi, dword [ebp + 0x10]
cmp byte [ebp - 0x21d], 0
jns 0x402671
jmp 0x402663
mov eax, dword [esi + 8]
test eax, eax
je 0x4029d9
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x240], 0
push 0x44d3fc
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x4028eb
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xorps xmm0, xmm0
movups xmmword [ebp - 0x228], xmm0
test eax, eax
je 0x40286c
mov ecx, eax
call dword [section..00cfg]
push 0x800
call ecx
test eax, eax
je 0x402945
push str.version.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test eax, eax
jne 0x40286e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x218], 0x93
jmp 0x402955
xor ebx, ebx
cmp byte [esi + 0xf], 0
mov eax, dword [ebp - 0x250]
jns 0x40287d
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [esi], eax
test ebx, ebx
je 0x40299d
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
movzx eax, byte [ebp - 0x219]
mov dword [ebp - 0x228], 0
test al, al
js 0x4028d6
je 0x40299d
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x219], 0
js 0x402a67
mov byte [ebp - 0x219], 0
jmp 0x40299d
cmp dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x224]
jne 0x4028b6
push eax
jmp 0x402995
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x218], 0x79
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x208], 0
lea edx, [ebp - 0x218]
mov ecx, edi
call fcn.00402200
cmp byte [ebp - 0x205], 0
jns 0x4029ae
push dword [ebp - 0x210]
call fcn.00405d0c
add esp, 4
jmp 0x4029ae
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x218], 0x88
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x208], 0
lea edx, [ebp - 0x218]
mov ecx, edi
call fcn.00402200
cmp byte [ebp - 0x205], 0
jns 0x40299d
push dword [ebp - 0x210]
call fcn.00405d0c
add esp, 4
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x4029ae
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp - 0x24c], 0
cmp byte [ebp - 0x23d], 0
js 0x402a23
je 0x4029d9
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x23d], 0
js 0x402a3d
cmp dword [esi], 0
jne 0x4024e1
mov dword [ebp - 0x218], 0x108
xorps xmm0, xmm0
movups xmmword [ebp - 0x214], xmm0
lea edx, [ebp - 0x218]
mov ecx, edi
call fcn.00402200
cmp byte [ebp - 0x205], 0
jns 0x4024e1
push dword [ebp - 0x210]
call fcn.00405d0c
add esp, 4
jmp 0x4024e1
cmp dword [ebp - 0x244], 0
mov eax, dword [ebp - 0x248]
jne 0x4029c9
push eax
call fcn.00405d0c
add esp, 4
jmp 0x4029d9
mov eax, dword [ebp - 0x248]
mov word [eax], 0
mov dword [ebp - 0x244], 0
cmp byte [ebp - 0x23d], 0
jns 0x4029d9
mov eax, dword [ebp - 0x248]
jmp 0x402a32
mov eax, dword [ebp - 0x224]
mov word [eax], 0
mov dword [ebp - 0x220], 0
cmp byte [ebp - 0x219], 0
jns 0x40299d
mov eax, dword [ebp - 0x224]
jmp 0x4028e5