Function at 0x411fd0
Capabilities:
Get common file path
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x421466
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0x34c], eax
push ebp
push esi
push edi
mov eax, dword [0x42b1d0]
xor eax, esp
push eax
lea eax, [esp + 0x360]
mov dword fs:[0], eax
mov eax, dword [esp + 0x374]
mov ebp, dword [esp + 0x370]
test eax, eax
jne 0x412111
mov edi, ebp
call fcn.00412340
test al, al
jne 0x41207d
cmp dword [ebp + 0x50], 0x10
lea edi, [ebp + 0x38]
jb 0x412039
mov edx, dword [edi + 4]
jmp 0x41203c
lea edx, [edi + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412041
sub eax, esi
push eax
push edx
mov ecx, edi
call fcn.00401c30
cmp dword [edi + 0x18], 0x10
jb 0x41205e
mov esi, dword [edi + 4]
jmp 0x412061
lea esi, [edi + 4]
call fcn.00401310
test al, al
jne 0x41207d
push 0
push 0x423d93
mov ecx, edi
call fcn.00401c30
jmp 0x412284
lea eax, [ebp + 0x38]
push eax
mov edi, 0x42418c
lea esi, [esp + 0x18]
call fcn.00408dc0
add esp, 4
push 0xffffffffffffffff
push 0
lea esi, [ebp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x374], 0
call fcn.00401850
mov dword [esp + 0x368], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x4120cb
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041288e
add esp, 4
push ebp
push esi
lea edi, [esp + 0x1c]
call fcn.004126e0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [esp + 0x374], 1
call fcn.00401850
mov dword [esp + 0x368], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x412174
mov edx, dword [esp + 0x18]
push edx
call fcn.0041288e
add esp, 4
jmp 0x412174
push str.temp
push eax
call fcn.0041fdc6
add esp, 8
test eax, eax
jne 0x412182
push 0x104
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004183e0
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412150
sub eax, edx
push eax
lea edx, [esp + 0x50]
lea esi, [ebp + 0x1c]
push edx
mov ecx, esi
call fcn.00401c30
push 0
push ebp
or eax, 0xffffffff
call fcn.00401b40
push 4
push str..log
mov eax, esi
call fcn.00401740
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x208
lea eax, [esp + 0x158]
push 0
push eax
call fcn.004183e0
add esp, 0xc
cmp dword [ebp + 0x34], 0x10
jb 0x4121ac
mov edx, dword [ebp + 0x20]
jmp 0x4121af
lea edx, [ebp + 0x20]
lea ecx, [esp + 0x30]
call fcn.0040fe90
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x4121c7
mov eax, dword [eax + 4]
jmp 0x4121ca
add eax, 4
push 0x103
push eax
lea ecx, [esp + 0x15c]
push ecx
call fcn.00412e91
add esp, 0xc
cmp dword [esp + 0x48], esi
jb 0x4121f3
mov edx, dword [esp + 0x34]
push edx
call fcn.0041288e
add esp, 4
xor eax, eax
push eax
push 0x80
push 4
push eax
push eax
push 0x80000001
lea ecx, [esp + 0x16c]
push ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412241
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Could_not_open_file.
call fcn.004142a8
add esp, 4
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x412284
cmp dword [esp + 0x10], 0
jne 0x412271
cmp edi, 0x19000
jb 0x412284
cmp dword [ebp + 0x34], 0x10
jb 0x41227c
mov ecx, dword [ebp + 0x20]
jmp 0x41227f
lea ecx, [ebp + 0x20]
call fcn.004011c0
mov ecx, dword [esp + 0x360]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.00412899
add esp, 0x35c
ret 8