Function at 0x402300
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 eax, dword [0x454040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
movsd qword [ebp - 0x238], xmm0
mov dword [ebp - 0x230], 0
test edx, edx
je 0x402665
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.0040e4b0
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
push edi
call fcn.0041ebc3
add esp, 4
cmp eax, 0x7ffffff8
jae 0x402a2c
mov ebx, eax
mov dword [ebp - 0x250], esi
cmp eax, 4
jbe 0x402654
mov esi, ebx
or esi, 3
inc esi
js 0x402a27
lea eax, [esi + esi]
push eax
call fcn.0040aa50
add esp, 4
mov dword [ebp - 0x228], eax
or esi, 0x80000000
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
lea esi, [eax + ebx*2]
cmp eax, edi
seta cl
cmp esi, edi
setbe dl
or dl, cl
je 0x402a37
test ebx, ebx
je 0x4023ec
add ebx, ebx
push ebx
push edi
push eax
call fcn.0040df30
add esp, 0xc
mov word [esi], 0
movsx eax, byte [ebp - 0x21d]
test eax, eax
cmovs eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
lea edx, [ebp - 0x228]
cmovns ecx, edx
test eax, eax
mov esi, dword [ebp - 0x250]
je 0x402436
add eax, eax
test eax, eax
je 0x402436
lea edx, [eax - 2]
cmp word [ecx + eax - 2], 0x5c
mov eax, edx
jne 0x40241c
cmp edx, 0xfffffffe
jne 0x4029ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp - 0x24c]
mov dword [edi], 0xfe
mov dword [edi + 4], eax
xorps xmm0, xmm0
movsd qword [edi + 8], xmm0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00402120
cmp byte [edi + 0x13], 0
jns 0x402478
push dword [ebp - 0x244]
call fcn.0040aa80
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov bl, 1
cmp byte [ebp - 0x21d], 0
jns 0x402497
push dword [ebp - 0x228]
call fcn.0040aa80
add esp, 4
test bl, bl
jne 0x4027eb
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 4]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
lea edi, [ebp - 0x218]
lea edx, [ebp - 0x238]
mov ecx, edi
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00402a70
add esp, 0xc
cmp ebx, edi
je 0x4024f8
cmp byte [esi + 0xf], 0
movzx eax, byte [ebp - 0x20d]
js 0x402a07
test al, al
jns 0x402618
mov ecx, ebx
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.00407960
cmp byte [ebp - 0x20d], 0
js 0x402632
mov word [ebp - 0x218], 0
mov byte [ebp - 0x20d], 0
mov ecx, dword [ebp - 0x214]
xor eax, eax
test al, al
movzx edx, al
cmovs edx, ecx
test edx, edx
je 0x40255e
test al, al
jns 0x402533
mov edi, dword [ebp - 0x218]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x20d], 0
jns 0x402570
mov eax, dword [ebp - 0x218]
mov word [eax], 0
mov dword [ebp - 0x214], 0
mov al, byte [ebp - 0x20d]
test al, al
jns 0x402570
push dword [ebp - 0x218]
call fcn.0040aa80
add esp, 4
movsx eax, byte [esi + 0xf]
test eax, eax
jns 0x40257b
mov eax, dword [esi + 8]
test eax, eax
je 0x4027e6
xorps xmm0, xmm0
movsd qword [ebp - 0x248], xmm0
mov dword [ebp - 0x240], 0
push 0x44e3be
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x4026cc
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xorps xmm0, xmm0
movups xmmword [ebp - 0x228], xmm0
test eax, eax
je 0x402890
mov ecx, eax
call dword [0x450a98]
push 0x800
call ecx
test eax, eax
je 0x402764
push str.version.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x402892
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0x93
jmp 0x402776
mov eax, dword [ebp - 0x210]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x218]
movsd qword [ebx], xmm0
jmp 0x4024f8
mov eax, dword [ebp - 0x218]
mov word [eax], 0
mov dword [ebp - 0x214], 0
xor ecx, ecx
mov al, byte [ebp - 0x20d]
jmp 0x40251d
mov byte [ebp - 0x21d], bl
lea eax, [ebp - 0x228]
jmp 0x4023c6
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x402717
mov edi, eax
dec eax
jne 0x40292e
lea ebx, [ebp - 0x238]
mov byte [ebx + 0xb], 0
mov word [ebx + edi*2 - 2], 0
cmp byte [ebp - 0x22d], 0
js 0x4026a2
lea eax, [ebp - 0x238]
jmp 0x4026a8
mov eax, dword [ebp - 0x238]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40249f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0xf4
jmp 0x402729
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0x79
mov dword [edi + 4], eax
xorps xmm0, xmm0
movsd qword [edi + 8], xmm0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00402120
cmp byte [edi + 0x13], 0
jns 0x4027b7
push dword [ebp - 0x210]
call fcn.0040aa80
add esp, 4
jmp 0x4027b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0xef
mov dword [edi + 4], eax
xorps xmm0, xmm0
movsd qword [edi + 8], xmm0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00402120
cmp byte [edi + 0x13], 0
jns 0x402759
push dword [ebp - 0x210]
call fcn.0040aa80
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
jmp 0x4027eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp - 0x218]
mov dword [edi], 0x88
mov dword [edi + 4], eax
xorps xmm0, xmm0
movsd qword [edi + 8], xmm0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00402120
cmp byte [edi + 0x13], 0
jns 0x4027a6
push dword [ebp - 0x210]
call fcn.0040aa80
add esp, 4
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x4027b7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x24c], 0
cmp byte [ebp - 0x23d], 0
js 0x402819
je 0x4027e6
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x23d], 0
js 0x402866
cmp dword [esi], 0
je 0x402833
cmp byte [ebp - 0x22d], 0
jns 0x402802
push dword [ebp - 0x238]
call fcn.0040aa80
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b285
mov eax, esi
add esp, 0x244
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x244], 0
mov eax, dword [ebp - 0x248]
jne 0x4027d2
push eax
call fcn.0040aa80
add esp, 4
jmp 0x4027e6
lea edi, [ebp - 0x218]
mov dword [edi], 0x108
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
mov ecx, dword [ebp + 0x10]
mov edx, edi
call fcn.00402120
cmp byte [edi + 0x13], 0
jns 0x4027eb
push dword [ebp - 0x210]
call fcn.0040aa80
add esp, 4
jmp 0x4027eb
mov eax, dword [ebp - 0x248]
mov word [eax], 0
mov dword [ebp - 0x244], 0
cmp byte [ebp - 0x23d], 0
jns 0x4027e6
mov eax, dword [ebp - 0x248]
jmp 0x402828
xor edi, edi
cmp byte [esi + 0xf], 0
jns 0x40289b
mov ebx, dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test edi, edi
je 0x4027a6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x219]
mov dword [ebp - 0x228], 0
test al, al
js 0x4028ef
je 0x4027a6
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x219], 0
js 0x402904
mov byte [ebp - 0x219], 0
jmp 0x4027a6
cmp dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x224]
jne 0x4028d3
push eax
jmp 0x40279e
mov eax, dword [ebp - 0x224]
mov word [eax], 0
mov dword [ebp - 0x220], 0
cmp byte [ebp - 0x219], 0
jns 0x4027a6
mov eax, dword [ebp - 0x224]
jmp 0x4028fe
cmp eax, 5
mov dword [ebp - 0x250], eax
jae 0x40296b
lea ebx, [ebp - 0x238]
add eax, eax
push eax
push 0
push ebx
call fcn.0040e4b0
add esp, 0xc
cmp byte [ebp - 0x22d], 0
jns 0x402a46
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x234], eax
jmp 0x40268a
mov eax, edi
add eax, 0xfffffffb
sub esp, 0x18
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], 4
lea ebx, [ebp - 0x238]
mov ecx, ebx
call fcn.00408070
mov dword [ebx + 4], 0
cmp byte [ebx + 0xb], 0
jns 0x4029a6
mov ebx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x250]
jmp 0x40293f
sar edx, 1
inc edx
lea eax, [ebp - 0x229]
lea ecx, [ebp - 0x24c]
push eax
push edx
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.0040a830
cmp byte [ebp - 0x22d], 0
jns 0x4029e4
push dword [ebp - 0x238]
call fcn.0040aa80
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
jmp 0x402480
test al, al
cmovs eax, dword [ebp - 0x214]
mov edx, dword [ebp - 0x218]
cmovns edx, edi
mov ecx, ebx
push eax
push edx
call fcn.00407890
jmp 0x4024f8
call fcn.00430d70
lea ecx, [ebp - 0x228]
call fcn.00430d80
push 0x44e2ba
push 0x44e1a3
call fcn.00445400
mov eax, dword [ebp - 0x250]
and al, 0x7f
mov byte [ebp - 0x22d], al
jmp 0x40268a