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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505124
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x454], esi
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x454], esi
push 0
push eax
call fcn.004b73e0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x421cb3
test eax, eax
jne 0x421f4f
push 0x1d
xor eax, eax
mov dword [ebp - 0x450], 0
push str.FileUtil::GetTempFileNamePath
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
call fcn.004084c0
push 0x5c
push 0x536eb0
mov dword [ebp - 4], 0
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x421d1a
push 0x5c
push 0x536eb0
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x421d1f
mov edx, 0x536eb0
mov ecx, edx
mov dword [ebp - 0x46c], 0
xor eax, eax
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 7
mov word [ebp - 0x46c], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421d50
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x46c]
call fcn.004084c0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x484]
call fcn.00434e10
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x421d8f
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x454], esp
push 0x18
push str.GetTempPath_failed:___s_
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov byte [ebp - 4], 3
call fcn.00408db0
push 0x173
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x46c]
push eax
push 6
push dword [0x560f9c]
call fcn.0040d3e0
mov byte [ebp - 4], 1
add esp, 0x30
mov edx, dword [ebp - 0x470]
cmp edx, 8
jb 0x421e2f
mov ecx, dword [ebp - 0x484]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421e25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42253b
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor eax, eax
mov dword [ebp - 0x474], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x458]
mov dword [ebp - 0x470], 7
mov word [ebp - 0x484], ax
cmp edx, 8
jb 0x421e8f
mov ecx, dword [ebp - 0x46c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421e85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42253b
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x421ed6
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421ecc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42253b
push edx
push ecx
call fcn.004b51c1
add esp, 8
lea ecx, [ebp - 0x484]
call fcn.0042bd90
cmp dword [ebp - 0x470], 8
lea eax, [ebp - 0x484]
cmovae eax, dword [ebp - 0x484]
push eax
push 0x53521c
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00409ac0
mov edx, dword [ebp - 0x470]
add esp, 0x10
cmp edx, 8
jb 0x421f4f
mov ecx, dword [ebp - 0x484]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421f45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422540
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor eax, eax
mov dword [ebp - 0x438], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
lea edx, [ecx + 2]
mov word [ebp - 0x438], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421f80
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.004084c0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 4
push 0
push eax
call fcn.004b73e0
add esp, 0xc
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push ecx
push 0
push 0x5362c0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4221d4
push eax
call fcn.004c283f
push eax
call fcn.004c1325
call fcn.004c1304
cdq
mov ecx, 0x2710
idiv ecx
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov ebx, edx
cmovae eax, dword [ebp - 0x438]
push ebx
push eax
push str._s_M__04d
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00409ac0
add esp, 0x1c
mov dword [ebp - 0x46c], 0
xor eax, eax
mov dword [ebp - 0x45c], 0
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x458], 7
mov word [ebp - 0x46c], ax
push 0x1d
push str.FileUtil::GetTempFileNamePath
call fcn.004084c0
push 0x5c
push 0x536eb0
mov byte [ebp - 4], 5
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x42209e
push 0x5c
push 0x536eb0
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x4220a3
mov edx, 0x536eb0
mov ecx, edx
mov dword [ebp - 0x450], 0
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4220d0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x450]
call fcn.004084c0
push ebx
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x454], esp
push 0x20
push str.created_by_random_number:___04d_
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov byte [ebp - 4], 7
call fcn.00408db0
push 0x186
lea eax, [ebp - 0x46c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x450]
push eax
push 5
push dword [0x560f9c]
call fcn.0040d3e0
mov byte [ebp - 4], 5
add esp, 0x30
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x422190
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422186
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422545
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x458]
cmp edx, 8
jb 0x4221d4
mov ecx, dword [ebp - 0x46c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4221ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422545
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor eax, eax
mov dword [ebp - 0x450], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x450], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422204
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.004084c0
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 8
call fcn.00421890
mov byte [ebp - 4], 4
mov bl, al
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x42227b
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422271
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42254f
push edx
push ecx
call fcn.004b51c1
add esp, 8
test bl, bl
je 0x4224a1
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4224a1
push 0x1d
mov dword [ebp - 0x46c], eax
lea ecx, [ebp - 0x46c]
push str.FileUtil::GetTempFileNamePath
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], 7
mov word [ebp - 0x46c], ax
call fcn.004084c0
push 0x5c
push 0x536eb0
mov byte [ebp - 4], 9
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x4222f2
push 0x5c
push 0x536eb0
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x4222f7
mov edx, 0x536eb0
mov ecx, edx
mov dword [ebp - 0x450], 0
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422323
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x450]
call fcn.004084c0
xor edx, edx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x49c]
call fcn.00434e10
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x42235c
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x454], esp
push 0x22
push str.DeleteFile__TempFile__failed:___s_
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov byte [ebp - 4], 0xc
call fcn.00408db0
push 0x192
lea eax, [ebp - 0x46c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x450]
push eax
push 6
push dword [0x560f9c]
call fcn.0040d3e0
mov byte [ebp - 4], 0xa
add esp, 0x30
mov edx, dword [ebp - 0x488]
cmp edx, 8
jb 0x4223fc
mov ecx, dword [ebp - 0x49c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4223f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42254a
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor eax, eax
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x488], 7
mov word [ebp - 0x49c], ax
cmp edx, 8
jb 0x42245d
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422453
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42254a
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x458]
cmp edx, 8
jb 0x4224a1
mov ecx, dword [ebp - 0x46c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422497
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42254a
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x218]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4224c3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004084c0
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x42251d
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422513
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42254f
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret
call fcn.004b9cae
call fcn.004b9cae
call fcn.004b9cae
call fcn.004b9cae
call fcn.004b9cae
int3