Function at 0x514540
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5dc612
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
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.005c0cf0
add esp, 0xc
cmp esi, ebp
je 0x5149a8
cmp byte [esi], 0
je 0x5149a8
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5145c4
sub eax, edx
cmp eax, 0x80
jb 0x5145db
mov eax, 0x7f
push eax
lea ecx, [esp + 0x1a8]
push esi
push ecx
call fcn.005be200
add esp, 0xc
push 1
push 2
lea ecx, [esp + 0x30]
call fcn.0040a750
push 0x601bf4
lea edx, [esp + 0x1a8]
push edx
lea eax, [esp + 0x30]
push 0x601be8
push eax
mov dword [esp + 0x240], ebp
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00408c00
mov edi, 0x10
cmp dword [eax + 0x18], edi
mov byte [esp + 0x230], 1
jb 0x51465a
mov eax, dword [eax + 4]
jmp 0x51465d
add eax, 4
push eax
push str.BaseLib::Md5File
push 0xbe
push str..common_stdfile.cpp
push 0x802
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0xc0], edi
jb 0x514697
mov edx, dword [esp + 0xac]
push edx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0x230], 0xffffffff
call fcn.00409510
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x78], vtable.std::ios_base.0
call fcn.005d9cc4
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.005a0d80
push 0x63b988
push esi
call fcn.005bd438
mov edi, eax
add esp, 8
mov dword [esp + 0x24], edi
cmp edi, ebp
mov dword [esp + 0x230], 2
je 0x51499a
push 2
push ebp
push edi
call fcn.005be8a1
push edi
call fcn.005be152
push 0
push 0
push edi
mov ebp, eax
call fcn.005be8a1
add esp, 0x1c
cmp ebp, 0x100000
lea ecx, [esp + 0x1c]
jbe 0x514833
mov ebx, ebp
push 0x100000
shr ebx, 0x14
call fcn.0043ed70
mov esi, dword [esp + 0x1c]
test esi, esi
mov byte [esp + 0x230], 3
je 0x51480c
test ebx, ebx
jle 0x5147c6
mov dword [esp + 0x14], ebx
push edi
push 1
push 0x100000
push esi
call fcn.005be7ff
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.005a1460
push 1
call fcn.0050f450
add esp, 4
sub dword [esp + 0x14], 1
jne 0x514782
shl ebx, 0x14
sub ebp, ebx
je 0x5147f8
push edi
push 1
push ebp
push esi
call fcn.005be7ff
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.005a1460
push esi
mov byte [esp + 0x234], 2
call fcn.005a1b1d
mov ebx, dword [esp + 0x1c]
jmp 0x51488a
mov esi, dword [esp + 0x18]
push 0x63a990
mov ecx, esi
call fcn.0040b540
push 0
call fcn.005a1b1d
push edi
call fcn.005bd8f3
add esp, 8
mov eax, esi
jmp 0x5149c5
push ebp
call fcn.0043ed70
mov esi, dword [esp + 0x1c]
test esi, esi
mov byte [esp + 0x230], 4
je 0x51497c
push edi
push 1
push ebp
push esi
call fcn.005be7ff
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.005a1460
push esi
mov byte [esp + 0x234], 2
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x178]
push edx
lea ecx, [esp + 0xcc]
call fcn.005a1540
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.005bd49b
lea eax, [esp + 0x190]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5148f8
sub eax, edx
push eax
lea edx, [esp + 0x188]
push edx
lea ecx, [esp + 0xb0]
call fcn.004078e0
add esi, 1
cmp esi, 0x10
jb 0x5148d0
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.00407630
cmp dword [esp + 0xc0], 0x10
jb 0x51495b
mov ecx, dword [esp + 0xac]
push ecx
call fcn.005a1b1d
add esp, 4
push edi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebp
mov byte [esp + 0xb0], 0
call fcn.005bd8f3
add esp, 4
jmp 0x5149c3
push 0x63a990
mov ecx, ebx
call fcn.0040b540
push 0
call fcn.005a1b1d
push edi
call fcn.005bd8f3
add esp, 8
jmp 0x5149c3
push 0x63a990
mov ecx, ebx
call fcn.0040b540
jmp 0x5149c3
push ebp
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], ebp
push 0x63a990
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.00408ea0
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.005bd2d7
add esp, 0x220
ret