Function at 0x516130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0045d240
mov edi, dword [ebp + 0xc]
push esi
mov word [edi], ax
call fcn.0045d240
push esi
mov word [edi + 2], ax
call fcn.0045d240
push esi
mov word [edi + 4], ax
call fcn.0045d240
push esi
mov word [edi + 6], ax
call fcn.0045d240
push esi
mov word [edi + 8], ax
call fcn.0045d240
push esi
mov word [edi + 0xa], ax
call fcn.0045d240
push esi
mov word [edi + 0xc], ax
call fcn.0045d240
push esi
mov word [edi + 0xe], ax
call fcn.0045d240
push esi
mov word [edi + 0x10], ax
call fcn.0045d240
push esi
mov word [edi + 0x12], ax
call fcn.0045d240
push esi
mov word [edi + 0x14], ax
call fcn.0045d240
push esi
mov word [edi + 0x16], ax
call fcn.0045d240
push esi
mov word [edi + 0x18], ax
call fcn.0045d240
mov word [edi + 0x1a], ax
lea eax, [edi + 0x1c]
push dword [esi]
push 1
push 0x10
push eax
call fcn.00595b79
add esp, 0x48
test eax, eax
jne 0x5161e2
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [esi]
lea eax, [edi + 0x2c]
push 1
push 0x18
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x44]
push 1
push 0x18
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x5c]
push 1
push 0x18
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x74]
push 1
push 0x18
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push esi
call fcn.0045d070
mov dword [edi + 0x8c], eax
lea eax, [edi + 0x90]
push dword [esi]
push 1
push 0x80
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x110]
push 1
push 0x80
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x190]
push 1
push 0x40
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x1d0]
push 1
push 0x20
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x1f0]
push 1
push 0x20
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x210]
push 1
push 0x14
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x224]
push 1
push 0x18
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x23c]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x244]
push 1
push 0x20
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push esi
call fcn.0045d240
mov word [edi + 0x264], ax
lea eax, [edi + 0x266]
push dword [esi]
push 1
push 0xc
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x272]
push 1
push 0x20
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push esi
call fcn.0045d240
push esi
mov word [edi + 0x292], ax
call fcn.0045d240
push esi
mov word [edi + 0x294], ax
call fcn.0045d240
push esi
mov word [edi + 0x296], ax
call fcn.0045d240
push esi
mov word [edi + 0x298], ax
call fcn.0045d240
mov word [edi + 0x29a], ax
lea eax, [edi + 0x29c]
push dword [esi]
push 1
push 0x20
push eax
call fcn.00595b79
add esp, 0x24
test eax, eax
je 0x5161dc
push dword [esi]
lea eax, [edi + 0x2bc]
push 1
push 0x24
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x5161dc
push esi
call fcn.0045d070
add esp, 4
mov dword [edi + 0x2e0], eax
mov eax, 1
pop edi
pop esi
pop ebp
ret