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

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x7e
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x204]
push ebx
lea ebx, [ebp - 0x41c]
sub esp, 0x434
mov dword [ebp - 0x214], 0x690046
rep stosd dword es:[edi], eax
mov dword [ebp - 0x210], 0x65006c
mov dword [ebp - 0x20c], 0x2f003a
mov dword [ebp - 0x208], 0x2f
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
mov edx, ebx
sub esp, 8
cmp word [ebp - 0x41c], 0
je 0x40e899
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40e890
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.wine_test.html]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40e8a0
lea eax, [ebp - 0x420]
mov dword [0x45a078], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x424ebc
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], 0x424e8c
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
mov esi, eax
call fcn.00417b50
mov dword [eax], 0x41d1e2
mov dword [eax + 4], 0x10a9
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.Creating_WebBrowser_object_failed:__08lx_n
mov dword [esp], eax
call fcn.004065d0
mov esi, dword [ebp - 0x420]
test esi, esi
je 0x40eaa2
mov dword [0x45a0a8], esi
mov dword [0x45a09c], 0
mov dword [0x45a098], 0
mov dword [0x45a094], 1
mov dword [0x45a060], 0
mov dword [0x45a090], 1
mov dword [0x45a080], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
je 0x40eab0
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetLongPathNameW]
lea eax, [ebp - 0x214]
sub esp, 0xc
cmp word [ebp - 0x214], 0
mov dword [ebp - 0x424], eax
mov edx, eax
je 0x40ea01
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40e9f8
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40ea08
mov eax, esi
mov edx, 1
call fcn.0040b360
mov ecx, 1
mov edx, 0x41a14c
mov eax, esi
call fcn.0040e090
mov eax, esi
call fcn.0040c1e0
mov edx, dword [ebp - 0x424]
mov eax, esi
call fcn.0040c8b0
xor edx, edx
mov ecx, 1
mov eax, esi
call fcn.0040e090
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax + 8]
sub esp, 4
mov esi, eax
call fcn.00417b50
mov dword [eax], 0x41d1e2
mov dword [eax + 4], 0x10c0
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.ref_lu__expected_0_n
mov dword [esp], eax
call fcn.004065d0
cmp edi, 0xffffffff
je 0x40eaa2
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x50
je 0x40e9b5
mov eax, 0x10b1
call fcn.00405630
mov dword [esp + 4], str.CreateFile_failed_n
mov dword [esp], 0
call fcn.004065d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret