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

Disassembly:
mov eax, 0x4710be
call fcn.004549fc
sub esp, 0xf4
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], esp
call fcn.0041e8aa
test eax, eax
je 0x423195
xor ebx, ebx
cmp dword [0x496d08], ebx
jne 0x422d6d
push 0x41bb23
call fcn.004561d1
pop ecx
mov dword [0x496d08], eax
mov eax, dword [ebp + 8]
push 1
pop edi
mov dword [ebp - 0x18], ebx
mov eax, dword [eax + 8]
mov dword [ebp - 4], edi
cmp eax, ebx
jne 0x422d85
mov eax, 0x476650
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
call fcn.00439f73
mov esi, eax
cmp esi, ebx
je 0x422df6
lea eax, [ebp + 0xb]
push edi
push eax
push 0x48bc10
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x422db8
mov eax, 0x4765fc
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x28]
push 0x48d7e4
push eax
mov dword [ebp - 0x24], 0xc37
call fcn.0040a580
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401093
cmp dword [ebp - 0x18], ebx
je 0x423195
push dword [ebp - 0x18]
call fcn.00439f3d
jmp 0x423195
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
push 0x48d7b4
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call fcn.00439fbb
mov esi, eax
cmp esi, ebx
je 0x422e84
lea eax, [ebp + 0xb]
push edi
push eax
push 0x48bc10
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x422e39
mov eax, 0x4765fc
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x28]
push 0x48d764
push eax
mov dword [ebp - 0x24], 0xc41
call fcn.0040a580
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00401093
cmp dword [ebp - 0x14], ebx
je 0x422e6e
push dword [ebp - 0x14]
call fcn.00439f3d
cmp dword [ebp - 0x1c], ebx
je 0x422de0
push dword [ebp - 0x1c]
call fcn.00439f3d
jmp 0x422de0
push ebx
push dword [ebp - 0x1c]
call fcn.00439fa9
mov esi, eax
cmp esi, ebx
je 0x422eda
lea eax, [ebp + 0xb]
push edi
push eax
push 0x48bc10
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 6
cmp eax, ebx
jne 0x422eb5
mov eax, 0x4765fc
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x28]
push 0x48d6fc
push eax
mov dword [ebp - 0x24], 0xc48
call fcn.0040a580
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
jmp 0x422e5c
mov edi, 0x476620
mov esi, 0x104
cmp dword [ebp - 0x14], ebx
je 0x422ef1
push dword [ebp - 0x14]
call fcn.00439f3d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x1c]
call fcn.00439f97
cmp eax, ebx
jne 0x423153
lea eax, [ebp + 0xb]
push ebx
push eax
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x476628
mov dword [ebp - 0x84], edi
call fcn.00403bf5
lea eax, [ebp - 0xbc]
push esi
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 7
mov dword [ebp - 0x20], esi
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.00403dc2
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 1
push dword [ebp - 0x14]
call fcn.00439f85
cmp eax, 0xea
lea ecx, [ebp - 0xbc]
sete bl
mov byte [ebp - 4], 7
call fcn.00402ebf
test bl, bl
je 0x422fc4
inc dword [ebp - 0x20]
push dword [ebp - 0x20]
lea eax, [ebp - 0xd4]
lea ecx, [ebp - 0xa4]
push eax
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov byte [eax + 4], 1
call fcn.00403dc2
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 1
push dword [ebp - 0x14]
call fcn.00439f85
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 7
call fcn.00402ebf
mov eax, 0x48ae3c
mov dword [ebp - 0x54], 0x476628
mov ecx, eax
mov dword [ebp - 0x34], edi
test ecx, ecx
jne 0x422fde
mov eax, 0x494ad8
lea ecx, [ebp - 0x29]
push 0
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00403cfd
lea eax, [ebp - 0x54]
push 0
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.0040582a
test eax, eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
sete bl
call fcn.00402424
test bl, bl
je 0x423137
lea eax, [ebp - 0x2a]
mov ebx, 0x476628
push 0
push eax
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xdc], edi
call fcn.00403bf5
lea eax, [ebp - 0x2b]
push 0
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x5c], edi
call fcn.00403bf5
lea eax, [ebp - 0xb0]
push esi
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 0xd
mov byte [eax + 4], 1
call fcn.00403dc2
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xc
call fcn.00402ebf
lea eax, [ebp - 0xc8]
push esi
push eax
lea ecx, [ebp - 0x7c]
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 0xe
mov byte [eax + 4], 1
call fcn.00403dc2
mov ecx, dword [ebp - 0xf4]
mov eax, dword [eax]
test ecx, ecx
mov ebx, 0x476650
jne 0x4230c5
mov ecx, ebx
push eax
push 0
push 0x48d6f4
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0xc
call fcn.00402ebf
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x4230ec
mov eax, ebx
push 1
push 2
push eax
push dword [ebp - 0x14]
call fcn.004231b5
add esp, 0x10
test eax, eax
jne 0x42311c
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x7c]
push eax
call fcn.004234fb
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x423115
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
call fcn.00402424
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 7
call fcn.00402424
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.00402424
xor ebx, ebx
jmp 0x422ee4
cmp dword [ebp - 0x14], ebx
je 0x423160
push dword [ebp - 0x14]
call fcn.00439f3d
cmp dword [ebp - 0x1c], ebx
je 0x42316d
push dword [ebp - 0x1c]
call fcn.00439f3d
cmp dword [ebp - 0x18], ebx
je 0x42317a
push dword [ebp - 0x18]
call fcn.00439f3d
mov eax, dword [0x496d08]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x423195
push eax
call fcn.004561d1
and dword [0x496d08], 0
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
leave
ret 4