Function at 0x5dd860
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d8ffb
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x7e500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8], edx
mov ebx, ecx
mov dword [ebp - 0xdc], ebx
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xf4], eax
mov eax, ebx
jb 0x5dd8ba
mov eax, dword [ebx]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5dd8e6
mov edi, 4
mov eax, edi
jmp 0x5ddd2f
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
mov ecx, 4
push esi
cmove edi, ecx
mov dword [ebp - 0xfc], edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xd8]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], esi
mov dword [eax + 4], ecx
test edi, edi
je 0x5dd924
mov eax, edi
jmp 0x5ddd2f
test ecx, ecx
ja 0x5ddae2
jb 0x5dd932
test esi, esi
jne 0x5dd93c
mov eax, 4
jmp 0x5ddd2f
test ecx, ecx
ja 0x5ddae2
jb 0x5dd94e
cmp esi, 0x100000
jae 0x5dd964
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd4], esi
mov esi, 1
jmp 0x5ddb72
test ecx, ecx
ja 0x5ddae2
jb 0x5dd97a
cmp esi, 0xa00000
jae 0x5dda23
mov eax, esi
mov dword [ebp - 0xd8], 0x19000
mov edx, 0xe147ae15
mov dword [ebp - 0xd4], 0x1000
mul edx
mov ebx, 0x47ae147a
mov dword [ebp - 0xe8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xec], edx
mov eax, ecx
mov ecx, 0xe147ae15
mul ecx
mov ecx, eax
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x47ae147a
mul edx
add ecx, edi
mov dword [ebp - 0xe4], edx
mov edx, dword [ebp - 0x104]
adc edx, 0
mov dword [ebp - 0xf0], eax
add ebx, ecx
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x108], ebx
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xf0]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0xe4]
adc edx, eax
mov eax, dword [ebp - 0x14]
sub esi, ecx
sbb eax, edx
shrd esi, eax, 1
shr eax, 1
add esi, ecx
adc eax, edx
shrd esi, eax, 0x10
jmp 0x5ddb6b
test ecx, ecx
ja 0x5ddae2
jb 0x5dda39
cmp esi, 0x6400000
jae 0x5ddae2
mov eax, esi
mov dword [ebp - 0xd8], 0xfa000
mov edx, 0x1a9fbe77
mov dword [ebp - 0xd4], 0x1000
mul edx
mov ebx, 0x624dd2f
mov dword [ebp - 0xe8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xf0], edx
mov eax, ecx
mov ecx, 0x1a9fbe77
mul ecx
mov ecx, eax
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x624dd2f
mul edx
add ecx, edi
mov dword [ebp - 0x104], edx
mov edx, dword [ebp - 0xe4]
adc edx, 0
mov dword [ebp - 0xec], eax
add ebx, ecx
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xe8], ebx
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xec]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0x104]
adc edx, eax
mov eax, dword [ebp - 0x14]
sub esi, ecx
sbb eax, edx
shrd esi, eax, 1
shr eax, 1
add esi, ecx
adc eax, edx
shrd esi, eax, 0x13
jmp 0x5ddb6b
mov eax, esi
mov dword [ebp - 0xd8], 0x9c4000
mov edx, 0x3886594b
mov dword [ebp - 0xd4], 0x1000
mul edx
mov ebx, 0x346dc5d6
mov dword [ebp - 0xe8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xf0], edx
mov eax, ecx
mov ecx, 0x3886594b
mul ecx
mov ecx, eax
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x346dc5d6
mul edx
add ecx, edi
mov dword [ebp - 0xec], edx
mov esi, eax
mov edx, dword [ebp - 0xe4]
adc edx, 0
add ebx, ecx
mov ecx, dword [ebp - 0xf0]
adc ecx, 0
mov dword [ebp - 0xe8], ebx
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xec]
adc eax, eax
add esi, edx
adc ecx, eax
shrd esi, ecx, 0x15
mov ebx, dword [ebp - 0xdc]
inc esi
mov edi, dword [ebp - 0xf4]
mov ecx, esi
imul ecx, dword [ebp - 0xd4]
mov eax, ecx
cdq
mov dword [edi], eax
lea eax, [ecx + 1]
mov dword [edi + 4], edx
push eax
call fcn.00651294
mov ecx, dword [ebp - 0xf8]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [edi]
inc ecx
push ecx
push 0
push eax
call fcn.00663090
add esp, 0xc
lea eax, [ebp - 0xd0]
push 0xb8
push 0
push eax
call fcn.00663090
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x5ddbca
mov ebx, dword [ebx]
sub esp, 8
lea ecx, [ebp - 0xd0]
push 0x20
push ebx
call fcn.004e22f0
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
jle 0x5ddc7a
mov eax, dword [ebp - 0xd4]
xor ebx, ebx
cdq
mov dword [ebp - 0xe4], eax
xor eax, eax
mov dword [ebp - 0xf4], edx
mov dword [ebp - 0xdc], eax
nop dword [eax]
push 0
cdq
lea ecx, [ebp - 0xd0]
push edx
push eax
call fcn.004e24e0
mov eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xd0]
push dword [ebp - 0xf4]
push dword [ebp - 0xe4]
mov eax, dword [eax]
add eax, ebx
push eax
call fcn.004e25f0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0xc4]
shr eax, 2
test al, 1
jne 0x5ddd4b
mov eax, dword [ebp - 0xdc]
inc edi
add eax, dword [ebp - 0xd8]
add ebx, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], eax
cmp edi, esi
jl 0x5ddc10
mov esi, dword [ebp - 0xfc]
lea ecx, [ebp - 0xc0]
call fcn.004387a0
test eax, eax
jne 0x5ddcba
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00431fb0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xd4], eax
lea ecx, [ebp - 0xc0]
call fcn.00437c40
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0xd4], ecx
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0065267c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650ddc
mov esp, ebp
pop ebp
ret
mov esi, 4
jmp 0x5ddc80