Function at 0x418ed0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x24], 0x8000
call fcn.0041d800
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov dword [edx + 8], ebx
mov eax, dword [edx + 0xb0]
cmp eax, ebx
je 0x418f18
mov esi, dword [eax]
push eax
mov eax, dword [0x425630]
push ebx
push eax
call edi
mov eax, esi
cmp esi, ebx
jne 0x418f03
mov edx, dword [ebp + 8]
lea ecx, [edx + 0xc8]
mov dword [edx + 0xb4], ebx
mov dword [edx + 0xb0], ebx
mov dword [edx + 0xb8], ebx
mov esi, dword [ecx]
cmp esi, ebx
je 0x418f70
mov edx, dword [esi]
push edx
call fcn.00412100
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
push eax
add ecx, 0xc8
call fcn.00412100
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [0x425630]
push esi
push ebx
push edx
call edi
mov eax, dword [ebp + 8]
dec dword [eax + 0xcc]
mov edx, eax
lea eax, [edx + 0xc8]
mov dword [eax], ebx
cmp dword [ebp - 0x40], ebx
jne 0x418fa8
mov edi, dword [ebp - 0x44]
cmp edi, ebx
je 0x418f9d
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x250]
lea esi, [ebp - 0x4c]
mov dword [ebp - 8], 1
call fcn.0041d880
test al, al
je 0x419385
jmp 0x418fd0
mov ax, word [ebp - 0x250]
xor edi, edi
mov dword [ebp - 4], edi
cmp ax, di
je 0x41936f
cmp ax, 0x3b
je 0x41936f
mov esi, 0x4212b0
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
push eax
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x419125
add esi, 0xc
cmp esi, str._d__d__d__d__d__d
jl 0x418ff4
cmp dword [ebp - 4], edi
jne 0x41936f
mov esi, dword [sym.imp.MSVCRT.dll_swscanf]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x250]
push 0x4204a4
push ecx
call esi
add esp, 0xc
cmp eax, 1
jl 0x41936f
mov eax, dword [ebp - 4]
cmp eax, 0x7fff
ja 0x41936f
cmp eax, edi
jne 0x419068
cmp dword [ebp - 0x1c], edi
je 0x419068
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
push eax
mov eax, dword [ebp + 8]
add eax, 0xc8
push eax
call fcn.0041b330
mov ebx, eax
cmp dword [ebx + 4], edi
jne 0x4191bd
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x250]
push str._d__d__d__d__d__d
push ecx
call esi
add esp, 0x1c
cmp eax, 5
jl 0x41936f
cmp word [ebp - 0x250], 0x41
lea eax, [ebp - 0x250]
jae 0x4190d3
add eax, 2
cmp word [eax], 0x41
jb 0x4190c0
lea edx, [ebp - 0x250]
cmp eax, edx
jb 0x4190e6
cmp word [eax], 0x20
jbe 0x4190e6
sub eax, 2
lea ecx, [ebp - 0x250]
cmp eax, ecx
jae 0x4190d3
push 0x4212fc
lea edx, [eax + 2]
lea ecx, [ebp - 0x34]
call fcn.0041da00
mov esi, eax
add esp, 4
cmp esi, edi
je 0x41913b
nop
mov eax, esi
call fcn.0041de20
test al, al
jne 0x419137
push 0x4212fc
lea ecx, [ebp - 0x34]
xor edx, edx
call fcn.0041da00
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x419100
jmp 0x41913b
mov edx, dword [esi + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 1
jmp 0x41936f
cmp esi, edi
jne 0x41914e
cmp byte [ebp + 0xc], 0
je 0x41936f
or dword [ebp - 8], 2
jmp 0x41936f
mov eax, dword [ebp - 0x28]
push esi
mov ecx, dword [ebp - 0x30]
push edi
push edi
push edi
push edi
mov edx, eax
push 1
and al, 1
push edi
movsx eax, al
shr edx, 1
push edi
and edx, 1
push edx
mov edx, dword [ebp - 0x50]
neg eax
sbb eax, eax
and eax, 0x2bc
push eax
push edi
push edi
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateFontW]
mov esi, eax
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x419195
cmp eax, esi
je 0x419195
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
cmp dword [ebp - 0x1c], edi
je 0x41936f
mov ecx, dword [ebp - 4]
cmp ecx, 0x8000
jl 0x4191c0
inc dword [ebp - 0x24]
jmp 0x4191c0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
sub eax, edi
je 0x4191f7
dec eax
je 0x4191e0
dec eax
jne 0x419225
mov eax, 0xff
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], edi
jmp 0x419228
mov eax, 0xac00
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 1
jmp 0x419228
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x250]
push 0x421300
push eax
call dword [sym.imp.MSVCRT.dll_swscanf]
add esp, 0x18
cmp eax, 4
jl 0x41936f
mov eax, dword [ebp - 0x10]
cmp byte [ebp + 0xc], 0
je 0x4192f0
lea ecx, [ebp - 0x20]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::constructor_void_]
mov ecx, dword [ebx + 4]
push ecx
lea edx, [ebp - 0x20]
push edx
lea esi, [ebp - 0x18]
call fcn.004193c0
mov eax, dword [ebp - 0x20]
add esp, 8
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41928d
xor esi, esi
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
cmp esi, edi
je 0x419288
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x4192f3
cmp esi, edi
je 0x419271
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp ebx, 0xac00
jne 0x4192bd
cmp ecx, 0xac00
jne 0x4192bd
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x18]
imul ecx, ecx, 0x92e
jmp 0x4192d6
mov edx, dword [ebp + 8]
cmp dword [ebp - 0xc], edi
je 0x4192ca
mov edx, dword [edx + 0x18]
jmp 0x4192cd
mov edx, dword [edx + 0x1c]
sub ecx, ebx
mov ebx, dword [ebp + 8]
inc ecx
imul ecx, edx
cmp eax, ecx
jne 0x419274
or dword [ebp - 8], 2
lea ecx, [ebp - 0x20]
call dword [sym.imp.Ngs3.dll_public:_void___thiscall_C2bString::destructor_void_]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41936f
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xac00
jne 0x419309
cmp eax, ecx
jne 0x419309
mov eax, 0x92e
jmp 0x41930c
sub eax, ecx
inc eax
add dword [ebx + 8], eax
mov eax, dword [0x425630]
push 0x18
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
je 0x419347
mov ecx, dword [ebx + 0xb4]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
jmp 0x419349
xor eax, eax
mov ecx, dword [ebx + 0xb4]
cmp ecx, edi
je 0x419355
mov dword [ecx], eax
inc dword [ebx + 0xb8]
mov dword [ebx + 0xb4], eax
cmp dword [ebx + 0xb0], edi
jne 0x41936f
mov dword [ebx + 0xb0], eax
lea ebx, [ebp - 0x250]
lea esi, [ebp - 0x4c]
call fcn.0041d880
test al, al
jne 0x418fd0
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x4193a5
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
push esi
call edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8