Function at 0x4101f8
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
mov eax, 0x49a195
call fcn.00498a28
sub esp, 0x70
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0xc], 0xffffffff
jne 0x4103e5
cmp byte [esi + 0x21], 2
jne 0x4103e5
lea edi, [esi + 0x28]
cmp dword [esi + 0x38], ebx
jne 0x4102a3
mov ecx, edi
call fcn.00416e7e
cmp dword [esi + 0x38], ebx
jne 0x4102a3
xor edx, edx
xor ecx, ecx
call fcn.0040bdc2
push 0x4b2fd5
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x24], 0x26
mov dword [ebp - 0x20], 0xd
mov dword [ebp - 0x1c], str.C:BooCode_OffergateMultiSetupoglibOGLiboglib_netwinternet_buffer.cpp
mov dword [ebp - 0x18], str.bool___thiscall_og::WinternetBuffer::CreateTempFile_void_
call fcn.00403061
push str.Buffer_error:_Cannt_create_buffer_file_because_filename_is_empty
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.00403061
push ecx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040be78
lea ecx, [ebp - 0x4c]
call fcn.00402fc0
lea ecx, [ebp - 0x64]
call fcn.00402fc0
xor al, al
jmp 0x4103e7
cmp dword [esi + 0x3c], 7
mov eax, edi
jbe 0x4102ad
mov eax, dword [edi]
push eax
mov ebx, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4102d2
cmp byte [esi + 0x20], 0
jne 0x4102d2
cmp dword [edi + 0x14], 7
jbe 0x4102c8
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [esi + 0x28]
cmp dword [ebx + 0x14], 7
mov eax, ebx
jbe 0x4102dc
mov eax, dword [ebx]
push 0
push 0x8000080
push 4
pop edi
push edi
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x410376
xor edx, edx
xor ecx, ecx
call fcn.0040bdc2
mov edx, ebx
mov dword [ebp - 0x24], 0x38
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], 0xd
mov dword [ebp - 0x1c], str.C:BooCode_OffergateMultiSetupoglibOGLiboglib_netwinternet_buffer.cpp
mov dword [ebp - 0x18], str.bool___thiscall_og::WinternetBuffer::CreateTempFile_void_
call fcn.0041510b
push 0x1a
push str.Cannt_create_buffer_file
push ecx
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0040efea
push eax
lea ecx, [ebp - 0x64]
call fcn.00403476
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push eax
call fcn.0040be49
lea ecx, [ebp - 0x64]
call fcn.00402fc0
lea ecx, [ebp - 0x4c]
jmp 0x410297
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x410393
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x4103e5
xor edx, edx
xor ecx, ecx
call fcn.0040bdc2
push str.Failed_to_retrieve_buffer_file_size
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x34], 0x41
mov dword [ebp - 0x30], 0xd
mov dword [ebp - 0x2c], str.C:BooCode_OffergateMultiSetupoglibOGLiboglib_netwinternet_buffer.cpp
mov dword [ebp - 0x28], str.bool___thiscall_og::WinternetBuffer::CreateTempFile_void_
call fcn.00403061
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
call fcn.0040be49
lea ecx, [ebp - 0x7c]
call fcn.00402fc0
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret