Function at 0x425050
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x633ef8]
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 edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x28], 0
call fcn.004555ae
mov ecx, eax
test ecx, ecx
jne 0x42509c
push 0x80004005
call fcn.00416970
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov eax, dword [edi + 8]
cmp dword [eax - 0xc], 0
jne 0x4250ea
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004163d0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4253ed
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4253ed
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x42512d
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004163d0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jmp 0x4253e3
push 0
push eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.004544f0
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x20]
mov byte [eax + edi], 0
push 0
push ecx
push edi
mov edi, dword [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42517c
push dword [ebp - 0x14]
call fcn.004544f9
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x425108
push 0x6097b3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.004160f0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
push 0x609340
push eax
call fcn.00415ec0
push dword [ebp - 0x14]
call fcn.004544f9
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004555ae
mov ecx, eax
test ecx, ecx
jne 0x4251cc
push 0x80004005
call fcn.00416970
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x75
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0042d910
push 0x73
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x65
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x72
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x5f
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x70
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x72
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x65
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x66
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x28
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x22
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x62
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x72
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x6f
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x77
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x73
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x65
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x72
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x6e
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x65
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x77
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x74
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x61
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x62
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x75
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x72
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x6c
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x22
lea ecx, [ebp - 0x14]
call fcn.0042d910
push 0x2c
lea ecx, [ebp - 0x14]
call fcn.0042d910
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x42538a
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
jl 0x42538a
push edi
push eax
call fcn.0059bf87
add esp, 8
test eax, eax
je 0x42538a
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x42538a
push eax
push 0x60cc50
lea ecx, [ebp - 0x1c]
call fcn.0040aec0
mov ecx, dword [ebp - 0x24]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00419890
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00416300
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425387
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004163d0
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4253b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4253d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4253ed
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.005892bc
mov esp, ebp
pop ebp
ret 4