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

Disassembly:
push 0xffffffffffffffff
push 0x44b8db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x614
push ebx
push ebp
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x21c]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
mov dword [esp + 0x10], ebx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [esp + 0x638]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x21c]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x455050]
lea edx, [esp + 0x14]
test edx, edx
mov dword [esp + 0x10], eax
je 0x42046c
lea eax, [esp + 0x14]
shr eax, 0x10
jne 0x420428
xor edi, edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x424]
mov di, cx
push pe_nt_image_headers32
push edx
push edi
call fcn.00404ba0
mov ecx, pe_nt_image_headers32
sub ecx, eax
cmp ecx, 1
jle 0x4203dc
lea edx, [esp + 0x424]
lea ecx, [esp + 0x10]
push edx
call fcn.00403e20
jmp 0x420468
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004048a0
cmp eax, ebx
je 0x42041b
push esi
push eax
push edi
call fcn.00404ba0
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x42041b
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.004048a0
cmp eax, ebx
jne 0x4203f3
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00404960
jmp 0x420468
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
je 0x420468
push esi
lea ecx, [esp + 0x14]
call fcn.00401820
test eax, eax
je 0x420468
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x420468
mov edi, dword [esp + 0x10]
mov eax, ecx
lea esi, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
mov esi, dword [esp + 0x634]
lea ecx, [eax - 0xc]
cmp edx, ebx
mov dword [esp + 0x62c], ebx
jl 0x42048f
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4204ec
mov ecx, dword [0x455050]
cmp eax, ebx
mov dword [esi], ecx
mov ebp, eax
jne 0x4204a1
xor edi, edi
jmp 0x4204aa
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 1
jg 0x4204b7
cmp edi, dword [eax - 4]
jle 0x4204ca
mov ecx, esi
call fcn.00401880
push edi
mov ecx, esi
call fcn.00401820
cmp eax, ebx
je 0x4204ec
mov eax, dword [esi]
lea ebx, [edi + edi]
push ebx
lea edx, [edi + edi + 2]
push ebp
push edx
push eax
call fcn.004017c0
mov ecx, dword [esi]
add esp, 0x10
mov dword [ecx - 8], edi
mov edx, dword [esi]
mov word [ebx + edx], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x455054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42051b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42051b
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0042ac06
add esp, 4
mov ecx, dword [esp + 0x624]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x620
ret