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

Disassembly:
mov eax, 0x4981ec
call fcn.00497330
sub esp, 0x70
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0xffffffff
jne 0x410846
cmp byte [esi + 0x21], 2
jne 0x410846
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x4106ee
lea ecx, [esi + 0x28]
call fcn.004176d4
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x4106ee
xor edx, edx
xor ecx, ecx
call fcn.0040c8b0
xor ebx, ebx
mov dword [ebp - 0x24], 0x27
mov dword [ebp - 0x20], 0xd
mov dword [ebp - 0x1c], str.C:BooCodeOffergateMultiSetup_ObfuscatedoglibOGLiboglib_netwinternet_buffer.cpp
mov dword [ebp - 0x18], str.ReplacementFor_CreateTempFile
mov dword [ebp - 0x64], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
push 0xf
pop esi
push 0x4b411d
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x64], bl
call fcn.00405c0c
mov dword [ebp - 4], 1
mov dword [ebp - 0x4c], ebx
push str.Buffer_error:_Cannt_create_buffer_file_because_filename_is_empty
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x4c], bl
mov byte [ebp - 4], 1
call fcn.00405c0c
push ecx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040c966
lea ecx, [ebp - 0x4c]
call fcn.00403b90
lea ecx, [ebp - 0x64]
call fcn.00403b90
xor al, al
jmp 0x410848
lea edi, [esi + 0x28]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4106fb
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41071d
cmp byte [esi + 0x20], 0
jne 0x41071d
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x410716
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x410727
mov eax, dword [edi]
xor ebx, ebx
push ebx
push 0x8000080
push 4
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x4107bf
xor edx, edx
xor ecx, ecx
call fcn.0040c8b0
mov edx, edi
mov dword [ebp - 0x24], 0x39
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], 0xd
mov dword [ebp - 0x1c], str.C:BooCodeOffergateMultiSetup_ObfuscatedoglibOGLiboglib_netwinternet_buffer.cpp
mov dword [ebp - 0x18], str.ReplacementFor_CreateTempFile
call fcn.0041590f
push 0x1a
push str.Cannt_create_buffer_file
push ecx
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.0040f4d8
push eax
lea ecx, [ebp - 0x64]
call fcn.00403b39
mov byte [ebp - 4], 5
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.0040c937
lea ecx, [ebp - 0x64]
call fcn.00403b90
lea ecx, [ebp - 0x4c]
jmp 0x4106e2
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4107dc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x410846
xor edx, edx
xor ecx, ecx
call fcn.0040c8b0
mov dword [ebp - 0x34], 0x42
mov dword [ebp - 0x30], 0xd
mov dword [ebp - 0x2c], str.C:BooCodeOffergateMultiSetup_ObfuscatedoglibOGLiboglib_netwinternet_buffer.cpp
mov dword [ebp - 0x28], str.ReplacementFor_CreateTempFile
mov dword [ebp - 0x7c], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
push str.Failed_to_retrieve_buffer_file_size
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], bl
call fcn.00405c0c
mov dword [ebp - 4], 7
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.0040c937
lea ecx, [ebp - 0x7c]
call fcn.00403b90
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret