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

Disassembly:
push 0xffffffffffffffff
push 0x41f108
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x424544]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x68]
cmp dword [ebp + 8], 0x4924923
jb 0x4035e1
push 0x13
xor ebx, ebx
push str.map_set_T__too_long
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00403290
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], ebx
call fcn.00401790
push 0x422a60
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], vtable.std::length_error.0
call fcn.00415ccb
mov edx, dword [esp + 0x74]
mov eax, dword [ebp + 4]
push edx
push eax
push esi
push eax
call fcn.00403c50
mov ecx, dword [ebp + 4]
mov edx, eax
mov eax, 1
add dword [ebp + 8], eax
xor ebx, ebx
cmp esi, ecx
mov dword [esp + 0x68], edx
jne 0x403615
mov dword [ecx + 4], edx
mov ecx, dword [ebp + 4]
mov dword [ecx], edx
mov ecx, dword [ebp + 4]
jmp 0x403633
cmp byte [esp + 0x70], bl
je 0x403628
mov dword [esi], edx
mov ecx, dword [ebp + 4]
cmp esi, dword [ecx]
jne 0x403636
mov dword [ecx], edx
jmp 0x403636
mov dword [esi + 8], edx
mov ecx, dword [ebp + 4]
cmp esi, dword [ecx + 8]
jne 0x403636
mov dword [ecx + 8], edx
mov esi, dword [edx + 4]
cmp byte [esi + 0x44], bl
lea ecx, [edx + 4]
jne 0x4037b7
mov esi, dword [ecx]
mov edi, dword [esi + 4]
cmp esi, dword [edi]
jne 0x4036f8
mov edi, dword [edi + 8]
cmp byte [edi + 0x44], bl
je 0x4036ff
cmp edx, dword [esi + 8]
jne 0x40369e
mov edx, esi
mov esi, dword [edx + 8]
mov ecx, dword [esi]
mov dword [edx + 8], ecx
mov ecx, dword [esi]
cmp byte [ecx + 0x45], bl
jne 0x403677
mov dword [ecx + 4], edx
mov edi, dword [edx + 4]
lea ecx, [edx + 4]
mov dword [esi + 4], edi
mov edi, dword [ebp + 4]
cmp edx, dword [edi + 4]
jne 0x40368d
mov dword [edi + 4], esi
jmp 0x40369a
mov edi, dword [ecx]
cmp edx, dword [edi]
jne 0x403697
mov dword [edi], esi
jmp 0x40369a
mov dword [edi + 8], esi
mov dword [esi], edx
mov dword [ecx], esi
mov esi, dword [ecx]
mov byte [esi + 0x44], al
mov esi, dword [ecx]
mov esi, dword [esi + 4]
mov byte [esi + 0x44], bl
mov ecx, dword [ecx]
mov ecx, dword [ecx + 4]
mov esi, dword [ecx]
mov edi, dword [esi + 8]
mov dword [ecx], edi
mov edi, dword [esi + 8]
cmp byte [edi + 0x45], bl
jne 0x4036c2
mov dword [edi + 4], ecx
mov edi, dword [ecx + 4]
mov dword [esi + 4], edi
mov edi, dword [ebp + 4]
cmp ecx, dword [edi + 4]
jne 0x4036db
mov dword [edi + 4], esi
mov dword [esi + 8], ecx
jmp 0x4037a1
mov edi, dword [ecx + 4]
cmp ecx, dword [edi + 8]
jne 0x4036ee
mov dword [edi + 8], esi
mov dword [esi + 8], ecx
jmp 0x4037a1
mov dword [edi], esi
mov dword [esi + 8], ecx
jmp 0x4037a1
mov edi, dword [edi]
cmp byte [edi + 0x44], bl
jne 0x403719
mov edx, esi
mov byte [edx + 0x44], al
mov byte [edi + 0x44], al
mov edx, dword [ecx]
mov edx, dword [edx + 4]
mov byte [edx + 0x44], bl
mov ecx, dword [ecx]
mov edx, dword [ecx + 4]
jmp 0x4037a4
cmp edx, dword [esi]
jne 0x40375a
mov edx, esi
mov esi, dword [edx]
mov ecx, dword [esi + 8]
mov dword [edx], ecx
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x45], bl
jne 0x403731
mov dword [ecx + 4], edx
mov edi, dword [edx + 4]
lea ecx, [edx + 4]
mov dword [esi + 4], edi
mov edi, dword [ebp + 4]
cmp edx, dword [edi + 4]
jne 0x403747
mov dword [edi + 4], esi
jmp 0x403755
mov edi, dword [ecx]
cmp edx, dword [edi + 8]
jne 0x403753
mov dword [edi + 8], esi
jmp 0x403755
mov dword [edi], esi
mov dword [esi + 8], edx
mov dword [ecx], esi
mov esi, dword [ecx]
mov byte [esi + 0x44], al
mov esi, dword [ecx]
mov esi, dword [esi + 4]
mov byte [esi + 0x44], bl
mov ecx, dword [ecx]
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edi, dword [esi]
mov dword [ecx + 8], edi
mov edi, dword [esi]
cmp byte [edi + 0x45], bl
jne 0x40377e
mov dword [edi + 4], ecx
mov edi, dword [ecx + 4]
mov dword [esi + 4], edi
mov edi, dword [ebp + 4]
cmp ecx, dword [edi + 4]
jne 0x403791
mov dword [edi + 4], esi
jmp 0x40379f
mov edi, dword [ecx + 4]
cmp ecx, dword [edi]
jne 0x40379c
mov dword [edi], esi
jmp 0x40379f
mov dword [edi + 8], esi
mov dword [esi], ecx
mov dword [ecx + 4], esi
mov esi, dword [edx + 4]
cmp byte [esi + 0x44], bl
lea ecx, [edx + 4]
je 0x403645
mov edx, dword [esp + 0x68]
mov ecx, dword [ebp + 4]
mov ecx, dword [ecx + 4]
mov byte [ecx + 0x44], al
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 4], edx
mov dword [ecx], ebp
mov eax, ecx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10