Function at 0x40d370
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fea0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5932e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x44]
mov dword [esi], vtable.Browser.0
push edi
lea ecx, [ebp - 0x24]
call fcn.00409940
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov edx, dword [ebp - 0x10]
cmp eax, 0xffffffff
setne bl
cmp edx, 0x10
jb 0x40d3f8
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d3ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
push edx
push ecx
call fcn.005150f8
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
test bl, bl
je 0x40d41f
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40d418
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [esi + 0x25c]
test eax, eax
je 0x40d477
mov ecx, dword [esi + 0x264]
sub ecx, eax
cmp ecx, 0x1000
jb 0x40d44f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
mov dword [esi + 0x25c], 0
add esp, 8
mov dword [esi + 0x260], 0
mov dword [esi + 0x264], 0
mov ecx, dword [esi + 0x250]
cmp ecx, 0x10
jb 0x40d4b1
mov eax, dword [esi + 0x23c]
inc ecx
cmp ecx, 0x1000
jb 0x40d4a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x24c], 0
mov dword [esi + 0x250], 0xf
mov byte [esi + 0x23c], 0
mov ecx, dword [esi + 0x238]
cmp ecx, 0x10
jb 0x40d506
mov eax, dword [esi + 0x224]
inc ecx
cmp ecx, 0x1000
jb 0x40d4fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x234], 0
mov dword [esi + 0x238], 0xf
mov byte [esi + 0x224], 0
mov ecx, dword [esi + 0x220]
cmp ecx, 0x10
jb 0x40d55b
mov eax, dword [esi + 0x20c]
inc ecx
cmp ecx, 0x1000
jb 0x40d551
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x21c], 0
mov dword [esi + 0x220], 0xf
mov byte [esi + 0x20c], 0
mov ecx, dword [esi + 0x208]
cmp ecx, 0x10
jb 0x40d5b0
mov eax, dword [esi + 0x1f4]
inc ecx
cmp ecx, 0x1000
jb 0x40d5a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x204], 0
mov dword [esi + 0x208], 0xf
mov byte [esi + 0x1f4], 0
mov ecx, dword [esi + 0x1f0]
cmp ecx, 0x10
jb 0x40d605
mov eax, dword [esi + 0x1dc]
inc ecx
cmp ecx, 0x1000
jb 0x40d5fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x1ec], 0
mov dword [esi + 0x1f0], 0xf
mov byte [esi + 0x1dc], 0
mov ecx, dword [esi + 0x1d8]
cmp ecx, 0x10
jb 0x40d65a
mov eax, dword [esi + 0x1c4]
inc ecx
cmp ecx, 0x1000
jb 0x40d650
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x1d4], 0
mov dword [esi + 0x1d8], 0xf
mov byte [esi + 0x1c4], 0
mov ecx, dword [esi + 0x1c0]
cmp ecx, 0x10
jb 0x40d6af
mov eax, dword [esi + 0x1ac]
inc ecx
cmp ecx, 0x1000
jb 0x40d6a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x1bc], 0
mov dword [esi + 0x1c0], 0xf
mov byte [esi + 0x1ac], 0
mov ecx, dword [esi + 0x1a4]
cmp ecx, 0x10
jb 0x40d704
mov eax, dword [esi + 0x190]
inc ecx
cmp ecx, 0x1000
jb 0x40d6fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x1a0], 0
lea ecx, [esi + 0x180]
mov dword [esi + 0x1a4], 0xf
mov byte [esi + 0x190], 0
call fcn.0041a920
mov ecx, dword [esi + 0x178]
cmp ecx, 0x10
jb 0x40d764
mov eax, dword [esi + 0x164]
inc ecx
cmp ecx, 0x1000
jb 0x40d75a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x174], 0
mov dword [esi + 0x178], 0xf
mov byte [esi + 0x164], 0
mov ecx, dword [esi + 0x160]
cmp ecx, 0x10
jb 0x40d7b9
mov eax, dword [esi + 0x14c]
inc ecx
cmp ecx, 0x1000
jb 0x40d7af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x15c], 0
mov dword [esi + 0x160], 0xf
mov byte [esi + 0x14c], 0
mov ecx, dword [esi + 0x148]
cmp ecx, 0x10
jb 0x40d80e
mov eax, dword [esi + 0x134]
inc ecx
cmp ecx, 0x1000
jb 0x40d804
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x144], 0
mov dword [esi + 0x148], 0xf
mov byte [esi + 0x134], 0
mov ecx, dword [esi + 0x130]
cmp ecx, 0x10
jb 0x40d863
mov eax, dword [esi + 0x11c]
inc ecx
cmp ecx, 0x1000
jb 0x40d859
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x12c], 0
mov dword [esi + 0x130], 0xf
mov byte [esi + 0x11c], 0
mov ecx, dword [esi + 0x118]
cmp ecx, 0x10
jb 0x40d8b8
mov eax, dword [esi + 0x104]
inc ecx
cmp ecx, 0x1000
jb 0x40d8ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x114], 0
lea ecx, [esi + 0xf0]
mov dword [esi + 0x118], 0xf
mov byte [esi + 0x104], 0
call fcn.0041e410
mov ecx, dword [esi + 0xec]
cmp ecx, 0x10
jb 0x40d918
mov eax, dword [esi + 0xd8]
inc ecx
cmp ecx, 0x1000
jb 0x40d90e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0xf
mov byte [esi + 0xd8], 0
mov ecx, dword [esi + 0xd4]
cmp ecx, 0x10
jb 0x40d96d
mov eax, dword [esi + 0xc0]
inc ecx
cmp ecx, 0x1000
jb 0x40d963
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0xf
mov byte [esi + 0xc0], 0
mov ecx, dword [esi + 0xbc]
cmp ecx, 0x10
jb 0x40d9c2
mov eax, dword [esi + 0xa8]
inc ecx
cmp ecx, 0x1000
jb 0x40d9b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0xf
mov byte [esi + 0xa8], 0
mov ecx, dword [esi + 0xa4]
cmp ecx, 0x10
jb 0x40da17
mov eax, dword [esi + 0x90]
inc ecx
cmp ecx, 0x1000
jb 0x40da0d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xf
mov byte [esi + 0x90], 0
mov ecx, dword [esi + 0x8c]
cmp ecx, 0x10
jb 0x40da69
mov eax, dword [esi + 0x78]
inc ecx
cmp ecx, 0x1000
jb 0x40da5f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0xf
mov byte [esi + 0x78], 0
mov ecx, dword [esi + 0x74]
cmp ecx, 0x10
jb 0x40dab5
mov eax, dword [esi + 0x60]
inc ecx
cmp ecx, 0x1000
jb 0x40daab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0xf
mov byte [esi + 0x60], 0
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x40dafa
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x40daf0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [esi + 0x3c]
cmp ecx, 0x10
jb 0x40db3f
mov eax, dword [esi + 0x28]
inc ecx
cmp ecx, 0x1000
jb 0x40db35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbc0
mov eax, edx
push ecx
push eax
call fcn.005150f8
add esp, 8
mov dword [esi + 0x38], 0
lea ecx, [esi + 0x1c]
mov dword [esi + 0x3c], 0xf
mov byte [esi + 0x28], 0
call fcn.0041d050
lea ecx, [esi + 0x10]
call fcn.0041e410
mov dword [ebp - 4], 0
mov edi, dword [esi + 0xc]
test edi, edi
je 0x40dbae
or ebx, 0xffffffff
lea ecx, [edi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x40dbae
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x55d39c]
mov ecx, edi
call esi
lea eax, [edi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x40dbae
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x55d39c]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00519e03
int3