Function at 0x51b1e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d2502
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
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.005b5540
add esp, 0xc
cmp esi, ebp
je 0x51b648
cmp byte [esi], 0
je 0x51b648
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x51b264
sub eax, edx
cmp eax, 0x80
jb 0x51b27b
mov eax, 0x7f
push eax
lea ecx, [esp + 0x1a8]
push esi
push ecx
call fcn.005b2ba0
add esp, 0xc
push 1
push 2
lea ecx, [esp + 0x30]
call fcn.0040b040
push 0x5f65f0
lea edx, [esp + 0x1a8]
push edx
lea eax, [esp + 0x30]
push 0x5f65e4
push eax
mov dword [esp + 0x240], ebp
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004094f0
mov edi, 0x10
cmp dword [eax + 0x18], edi
mov byte [esp + 0x230], 1
jb 0x51b2fa
mov eax, dword [eax + 4]
jmp 0x51b2fd
add eax, 4
push eax
push str.BaseLib::Md5File
push 0xbe
push str..common_stdfile.cpp
push 0x802
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0xc0], edi
jb 0x51b337
mov edx, dword [esp + 0xac]
push edx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0x230], 0xffffffff
call fcn.00409e00
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x78], vtable.std::ios_base.0
call fcn.005cdcde
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.00595120
push 0x62c568
push esi
call fcn.005b1ae9
mov edi, eax
add esp, 8
mov dword [esp + 0x24], edi
cmp edi, ebp
mov dword [esp + 0x230], 2
je 0x51b63a
push 2
push ebp
push edi
call fcn.005b28d8
push edi
call fcn.005b2af5
push 0
push 0
push edi
mov ebp, eax
call fcn.005b28d8
add esp, 0x1c
cmp ebp, 0x100000
lea ecx, [esp + 0x1c]
jbe 0x51b4d3
mov ebx, ebp
push 0x100000
shr ebx, 0x14
call fcn.0043ea40
mov esi, dword [esp + 0x1c]
test esi, esi
mov byte [esp + 0x230], 3
je 0x51b4ac
test ebx, ebx
jle 0x51b466
mov dword [esp + 0x14], ebx
push edi
push 1
push 0x100000
push esi
call fcn.005b2836
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.00595800
push 1
call fcn.00507ad0
add esp, 4
sub dword [esp + 0x14], 1
jne 0x51b422
shl ebx, 0x14
sub ebp, ebx
je 0x51b498
push edi
push 1
push ebp
push esi
call fcn.005b2836
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.00595800
push esi
mov byte [esp + 0x234], 2
call fcn.00595eb8
mov ebx, dword [esp + 0x1c]
jmp 0x51b52a
mov esi, dword [esp + 0x18]
push 0x62b600
mov ecx, esi
call fcn.0040be30
push 0
call fcn.00595eb8
push edi
call fcn.005b1fa4
add esp, 8
mov eax, esi
jmp 0x51b665
push ebp
call fcn.0043ea40
mov esi, dword [esp + 0x1c]
test esi, esi
mov byte [esp + 0x230], 4
je 0x51b61c
push edi
push 1
push ebp
push esi
call fcn.005b2836
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.00595800
push esi
mov byte [esp + 0x234], 2
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x178]
push edx
lea ecx, [esp + 0xcc]
call fcn.005958e0
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.005b1b4c
lea eax, [esp + 0x190]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x51b598
sub eax, edx
push eax
lea edx, [esp + 0x188]
push edx
lea ecx, [esp + 0xb0]
call fcn.004080f0
add esi, 1
cmp esi, 0x10
jb 0x51b570
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.00407e40
cmp dword [esp + 0xc0], 0x10
jb 0x51b5fb
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00595eb8
add esp, 4
push edi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebp
mov byte [esp + 0xb0], 0
call fcn.005b1fa4
add esp, 4
jmp 0x51b663
push 0x62b600
mov ecx, ebx
call fcn.0040be30
push 0
call fcn.00595eb8
push edi
call fcn.005b1fa4
add esp, 8
jmp 0x51b663
push 0x62b600
mov ecx, ebx
call fcn.0040be30
jmp 0x51b663
push ebp
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], ebp
push 0x62b600
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.00409790
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.005b1988
add esp, 0x220
ret