Function at 0x41fde0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ea52
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x627a40]
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 eax, ecx
mov dword [ebp - 0x2ac], eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42059d
call fcn.004360f0
test al, al
je 0x41fe49
sub dword [0x3d7f97d1], esi
xchg edx, eax
int 0xcf
inc esi
jno 0x41fe68
sal byte [esi], 0xb5
and bl, bh
fnstenv [ebx - 0x4336cee2]
dec edx
inc ebp
jl 0x41febb
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41fe8a
call fcn.00436550
test al, al
je 0x42059d
inc eax
bound ebx, qword [eax]
sbb bh, dl
sbb byte [edx], bl
cli
cmp al, 0xfe
pop ds
sal dword [eax - 0x117cbcab], 0x46
ljmp 0xcd89
add byte [eax + 8], ch
add al, byte [eax]
add byte [ebp - 0x2177b], cl
jmp [edx]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00576f50
add esp, 0xc
lea ecx, [ebp - 0x290]
push 0x619488
call fcn.004039f0
mov dword [ebp - 4], 0
call fcn.00435f30
test al, al
je 0x41fed1
add byte [eax + eax*8 - 0x610ee8c], al
out dx, eax
stc
pop esp
mov bl, 0xfb
ljmp 0x9472
call fcn.00436550
test al, al
je 0x41fef9
lcall 0x6a91, 0x2b47b6d1
aaa
wait
loope 0x41feea
imul esi, dword [eax + 0x22], 0xffffffbe
mov eax, 0x8bac8dd0
mov ebp, dword [ebp + edi*4 - 0x6f]
push ebx
enter 0xfffffffffffffc03, 0xffffffffffffff94
ror byte [ebp + 0x6c8b8bac], 1
mov ebp, 0x3c85391
cld
xchg esp, eax
out dx, al
adc al, 0xe8
mov dl, 0x63
add dword [eax], eax
call fcn.004362b0
test al, al
je 0x41ff18
jbe 0x41fe89
adc al, 0x74
cld
push ss
sub eax, 0xb571ba63
or eax, 0x5d91a182
rcr dword [esi + 0x2d], cl
cmp bl, bl
into
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x278]
call fcn.004228e0
mov byte [ebp - 4], 1
call fcn.004360f0
test al, al
je 0x41ff5b
push ds
mov bh, byte [ebp - 0x1a6c9396]
push ecx
jecxz 0x41ff6c
push 0x3002fec7
mov esp, 0xe8794c7a
mov al, 0x60
add dword [eax], eax
call fcn.00436010
test al, al
je 0x41ff7f
sbb byte [ebx + 0x72acef09], dl
invalid
mov dh, 0x54
cld
stc
jae 0x41ffbd
into
xlatb
inc ecx
jle 0x41ffcc
int1
push ebx
cmp ch, al
insb byte es:[edi], dx
cmpsb byte [esi], byte es:[edi]
or al, 0xe8
sbb al, 0x60
add dword [eax], eax
call fcn.00435fa0
test al, al
je 0x41ffa1
cmp ebx, eax
pop ebx
sbb edi, dword [esp - 0x3c53e063]
lodsd eax, dword [esi]
std
inc edx
iretd
mov edx, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x260]
call fcn.00422b40
mov byte [ebp - 4], 2
call fcn.00436240
test al, al
je 0x41ffd3
stc
and byte [ebx + 0x5b6ac3ad], bl
jbe 0x41ffd6
cli
sbb dword [esi - 0x36], edi
jg 0x420038
cmpsb byte [esi], byte es:[edi]
inc ebp
popal
jg 0x41ffb6
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x248]
call fcn.00422b40
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 3
call fcn.00429250
call fcn.004365c0
test al, al
je 0x42000c
std
invalid
or byte [ecx - 0xe], 0xe4
scasb al, byte es:[edi]
jg 0x42004b
mov gs, word [ebp + 0x60]
retf 0x9e6f
call fcn.00436080
test al, al
je 0x420035
pushfd
ja 0x42005b
mul eax
sbb eax, dword [esi + 0x314706d3]
and eax, 0xd21a304b
pop esp
and eax, 0xbfe9094b
rcl dword [ebx + 0x48e593aa], 0x8d
fsubr st(6)
push ecx
call fcn.00436240
add dword [eax], eax
test al, al
je 0x42005c
mov al, 0xe1
xor al, 0x34
mov al, byte [0x88281664]
fsub st(7), st(0)
in al, dx
das
push ecx
lds edi, [eax + 0x6c6eb3c7]
pop edi
out 0xcb, al
or al, byte [ecx - 0x5a2f0956]
push esi
lea ecx, [ebp - 0x248]
call fcn.00429250
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x248]
call fcn.00404a90
test eax, eax
jne 0x4200e8
call fcn.00435ec0
test al, al
je 0x420097
pop es
stc
jge 0x4200b3
or dword [edi + 0x66], 1
mov eax, dword [0x1d02259a]
ljmp 0xbd83
cmp word [ebp - 0x218], 0
jne 0x4200bb
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x290]
call fcn.00403d10
cmp al, 0xfe
invalid
jmp 0x42015f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4200c4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x290]
call fcn.00403d10
jmp 0x42015f
call fcn.00435e50
test al, al
je 0x42010e
lahf
cwde
cmc
jge 0x4200f3
adc al, 0x98
or eax, 0x2121d779
js 0x4200b6
pop ebx
xlatb
sar byte [esi], 1
mov cl, 0xaa
xor al, 0xe6
jge 0x420126
mov edi, 0xe875bec2
cmp eax, 0x84000164
sal byte [eax - 0x48], 0x76
mov dword [0x904d4b], eax
and eax, 0x4edcf39b
call fcn.00436550
test al, al
je 0x420137
mov eax, 0x4d4ba376
nop
add byte [0x4edcf39b], ah
dec edx
fldenv [ebp + 0x59]
pop ecx
ja 0x42019f
sahf
and dword [eax - 0x2b2e812d], esi
mov eax, dword [0x55ee1b58]
lock add cl, byte [ebx - 0x2ab6b]
dec dword [ebp - 0x2a773]
invalid
mov edx, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
call fcn.00422cf0
push eax
lea ecx, [ebp - 0x290]
call fcn.00403970
lea ecx, [ebp - 0x2a8]
call fcn.00402d00
mov dword [ebp - 0x2b0], 0
call fcn.00436010
test al, al
je 0x420190
lodsd eax, dword [esi]
mov ah, 0xcd
mov dh, 0x79
jle 0x420102
cmp al, 0x2c
das
xchg cl, bh
fstp xword [eax + 0x6b3d1a8d]
adc dh, bh
int1
and ecx, dword [edi]
pop ds
test byte [eax], al
add byte [eax], al
add byte [eax], al
xor eax, eax
mov dword [ebp - 0x21c], 7
push eax
push 0x619488
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00403d10
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.00403e10
call fcn.00435f30
test al, al
je 0x420200
xchg esp, eax
popal
add byte [ebp - 0x22f73], cl
inc edi
test eax, esp
std
invalid
ljmp 0xee30:0xb8c69bee
call fcn.004361d0
test al, al
je 0x420222
inc esi
sbb dh, byte [eax + 0x71]
int3
call fcn.004365c0
test al, al
je 0x420247
jno 0x42023d
or dword [edi*4 + 0x6616930a], esp
int 0x50
xchg dword [ebx - 0x58], esi
jno 0x420207
sbb al, 0xb5
test eax, 0x2392b1c
push 0x24
mov eax, cs
scasd eax, dword es:[edi]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040bf30
push 4
push str..fcb
lea ecx, [ebp - 0x230]
call fcn.0040be00
mov eax, dword [ebp - 0x2b0]
test eax, eax
jle 0x4202c0
cdq
lea ecx, [ebp - 0x2a8]
push edx
push eax
call fcn.00421850
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.0040bf30
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x294]
cmp eax, 8
jb 0x4202c0
inc eax
lea ecx, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2a8]
call fcn.00404090
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4203b6
call fcn.00436550
test al, al
je 0x420307
jmp 0xc0a6dcc2
sar byte [edi - 0x12aa53c7], 0x4e
inc ecx
inc ecx
stosd dword es:[edi], eax
xchg edx, eax
sar byte [ebx], 1
cmp eax, 0xa0da7a5f
cld
invalid
call fcn.00436390
test al, al
je 0x42032e
bound ebp, qword [ecx + edi*2 - 0x35]
and bh, dh
pushfd
inc ecx
mov al, byte [0xf99e05a3]
pop ecx
fadd qword [esi - 0x20]
fld xword [ebx - 0x59]
scasb al, byte es:[edi]
cmp byte [ebp + 0x6d], ah
imul esp, dword [edi], 0x830e67c8
mov ebp, 0xfffffde4
or byte [ebp - 0x22f7b], cl
dec dword [edi]
inc ebx
test eax, edx
std
invalid
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4203b6
call fcn.00436390
test al, al
je 0x420375
adc eax, 0xecdfa4a4
sub dword [edi], eax
jecxz 0x4202f0
mov ch, 0x53
xor eax, 0xf741471a
shl dword [edx - 0x6c70bdc6], 1
xchg ebx, eax
add al, 0xa4
nop
sbb byte [edi - 0x65a49596], ah
mov ebx, dword [ebp - 0x2b0]
cmp ebx, 0xa
jge 0x4204b0
inc ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x2b0], ebx
cmp eax, 8
jb 0x420190
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00404090
jmp 0x420190
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push dword [ebp - 0x2ac]
call fcn.00584155
add esp, 8
call fcn.00436780
test al, al
je 0x4203f9
sar ch, 1
invalid
aaa
mov ch, dl
mov bh, 0xc2
adc al, 0xbc
jno 0x42036b
das
mov bl, 0x78
dec byte [esi]
invalid
call fcn.00436400
test al, al
je 0x42041a
sal byte [eax + ebx + 0x42], 0x82
dec ebx
sbb byte [ebx], 0xe3
outsd dx, dword [esi]
inc edx
or byte [ebx - 0x80], 0x1b
jecxz 0x420478
jnp 0x420426
lcall 0x6005, 0x106b4171
rcr dword [ebx - 0xd3f92f7], cl
pop edi
scasb al, byte es:[edi]
call fcn.00435de0
test al, al
je 0x42043b
les esp, [0xfffff2cd]
int 0xf2
jne 0x4203ff
jmp 0x4203c6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42047d
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call ebx
push dword [ebp - 0x2ac]
call esi
test eax, eax
je 0x4204b0
call fcn.00436710
test al, al
je 0x4204a4
cdq
push esp
sbb edx, esp
xlatb
int 0x34
mov dh, 0x29
sub al, 0
mov byte [0x1b4d6620], al
arpl si, cx
push 5
push 0
push dword [ebp - 0x2ac]
call ebx
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4204ce
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00404090
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4204ec
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x420527
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x420562
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x42059d
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00404090
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.00570ea9
mov esp, ebp
pop ebp
ret