Function at 0x51a250
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d14e2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x238]
mov esi, dword [esp + 0x23c]
xor ebp, ebp
push 0x7f
lea eax, [esp + 0x1a9]
push ebp
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov byte [esp + 0x1b0], 0
call fcn.005b4520
add esp, 0xc
cmp esi, ebp
je 0x51a6b8
cmp byte [esi], 0
je 0x51a6b8
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x51a2d4
sub eax, edx
cmp eax, 0x80
jb 0x51a2eb
mov eax, 0x7f
push eax
lea ecx, [esp + 0x1a8]
push esi
push ecx
call fcn.005b1b80
add esp, 0xc
push 1
push 2
lea ecx, [esp + 0x30]
call fcn.0040b160
push 0x5f55f0
lea edx, [esp + 0x1a8]
push edx
lea eax, [esp + 0x30]
push 0x5f55e4
push eax
mov dword [esp + 0x240], ebp
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00409610
mov edi, 0x10
cmp dword [eax + 0x18], edi
mov byte [esp + 0x230], 1
jb 0x51a36a
mov eax, dword [eax + 4]
jmp 0x51a36d
add eax, 4
push eax
push str.BaseLib::Md5File
push 0xbe
push str..common_stdfile.cpp
push 0x802
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0xc0], edi
jb 0x51a3a7
mov edx, dword [esp + 0xac]
push edx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0x230], 0xffffffff
call fcn.00409f20
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x78], vtable.std::ios_base.0
call fcn.005cccbe
xor eax, eax
add esp, 4
lea ecx, [esp + 0x11c]
push ecx
lea ecx, [esp + 0xc8]
mov byte [esp + 0x178], 0
mov dword [esp + 0x179], eax
mov dword [esp + 0x17d], eax
mov dword [esp + 0x181], eax
mov word [esp + 0x185], ax
mov byte [esp + 0x187], al
call fcn.00594100
push 0x62b408
push esi
call fcn.005b0ac9
mov edi, eax
add esp, 8
mov dword [esp + 0x24], edi
cmp edi, ebp
mov dword [esp + 0x230], 2
je 0x51a6aa
push 2
push ebp
push edi
call fcn.005b18b8
push edi
call fcn.005b1ad5
push 0
push 0
push edi
mov ebp, eax
call fcn.005b18b8
add esp, 0x1c
cmp ebp, 0x100000
lea ecx, [esp + 0x1c]
jbe 0x51a543
mov ebx, ebp
push 0x100000
shr ebx, 0x14
call fcn.0043d9e0
mov esi, dword [esp + 0x1c]
test esi, esi
mov byte [esp + 0x230], 3
je 0x51a51c
test ebx, ebx
jle 0x51a4d6
mov dword [esp + 0x14], ebx
push edi
push 1
push 0x100000
push esi
call fcn.005b1816
mov edx, dword [esp + 0x250]
mov eax, dword [esp + 0x30]
add esp, 0x10
push edx
push eax
push esi
lea ecx, [esp + 0x128]
push ecx
lea ecx, [esp + 0xd4]
call fcn.005947e0
push 1
call fcn.00506ab0
add esp, 4
sub dword [esp + 0x14], 1
jne 0x51a492
shl ebx, 0x14
sub ebp, ebx
je 0x51a508
push edi
push 1
push ebp
push esi
call fcn.005b1816
mov edx, dword [esp + 0x250]
add esp, 0x10
push edx
push ebp
push esi
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0xd4]
call fcn.005947e0
push esi
mov byte [esp + 0x234], 2
call fcn.00594e98
mov ebx, dword [esp + 0x1c]
jmp 0x51a59a
mov esi, dword [esp + 0x18]
push 0x62a4a0
mov ecx, esi
call fcn.0040bf50
push 0
call fcn.00594e98
push edi
call fcn.005b0f84
add esp, 8
mov eax, esi
jmp 0x51a6d5
push ebp
call fcn.0043d9e0
mov esi, dword [esp + 0x1c]
test esi, esi
mov byte [esp + 0x230], 4
je 0x51a68c
push edi
push 1
push ebp
push esi
call fcn.005b1816
mov ecx, dword [esp + 0x250]
mov edx, dword [esp + 0x30]
add esp, 0x10
push ecx
push edx
push esi
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0xd4]
call fcn.005947e0
push esi
mov byte [esp + 0x234], 2
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x178]
push edx
lea ecx, [esp + 0xcc]
call fcn.005948c0
xor ebp, ebp
mov dword [esp + 0xc0], 0xf
mov dword [esp + 0xbc], ebp
mov byte [esp + 0xac], 0
mov byte [esp + 0x230], 5
xor esi, esi
nop
movzx eax, byte [esp + esi + 0x174]
push eax
lea ecx, [esp + 0x188]
push str._.2X
push ecx
call fcn.005b0b2c
lea eax, [esp + 0x190]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x51a608
sub eax, edx
push eax
lea edx, [esp + 0x188]
push edx
lea ecx, [esp + 0xb0]
call fcn.00408360
add esi, 1
cmp esi, 0x10
jb 0x51a5e0
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0xb0]
mov esi, 0xf
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], ebp
push eax
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.004080b0
cmp dword [esp + 0xc0], 0x10
jb 0x51a66b
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00594e98
add esp, 4
push edi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebp
mov byte [esp + 0xb0], 0
call fcn.005b0f84
add esp, 4
jmp 0x51a6d3
push 0x62a4a0
mov ecx, ebx
call fcn.0040bf50
push 0
call fcn.00594e98
push edi
call fcn.005b0f84
add esp, 8
jmp 0x51a6d3
push 0x62a4a0
mov ecx, ebx
call fcn.0040bf50
jmp 0x51a6d3
push ebp
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], ebp
push 0x62a4a0
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.004098b0
mov eax, ebx
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.005b0968
add esp, 0x220
ret