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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e04a7
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xec], ecx
lea eax, [ebp - 0x34]
push eax
call fcn.0057a5e0
add esp, 4
mov dword [ebp - 4], 0
push str.datautdata_tags
lea ecx, [ebp - 0x34]
call fcn.004972f0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x34]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x590d9f
mov dword [ebp - 0xd4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403270
mov eax, dword [ebp - 0xd4]
jmp 0x591092
mov dword [ebp - 0x2c], 0
xor ecx, ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x10]
call fcn.00403290
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x590e14
cmp dword [ebp - 0x28], 0
jl 0x590e14
jg 0x590dd7
cmp dword [ebp - 0x2c], 0
jbe 0x590e14
mov dword [ebp - 0xd0], 0
push 0
lea ecx, [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c490
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xd0]
push edx
lea ecx, [ebp - 0x10]
call fcn.00440940
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.004a8880
push eax
lea ecx, [ebp - 0x54]
call fcn.00401c00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.005480b0
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x24]
call fcn.00544f40
mov byte [ebp - 4], 4
push 1
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0xcc]
call fcn.005493a0
movzx eax, al
test eax, eax
jne 0x590ec3
mov dword [ebp - 0xd8], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00545090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.0044a910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00401d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403270
mov eax, dword [ebp - 0xd8]
jmp 0x591092
lea ecx, [ebp - 0x24]
call fcn.00543e60
movzx ecx, al
test ecx, ecx
jne 0x590ee1
lea ecx, [ebp - 0x24]
call fcn.00543eb0
movzx edx, al
test edx, edx
jne 0x590f38
mov dword [ebp - 0xdc], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00545090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.0044a910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00401d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403270
mov eax, dword [ebp - 0xdc]
jmp 0x591092
push str.222
lea ecx, [ebp - 0x24]
call fcn.005462d0
mov ecx, eax
call fcn.00543e60
movzx eax, al
test eax, eax
jne 0x590f6e
push 0x6214f0
lea ecx, [ebp - 0x24]
call fcn.005462d0
mov ecx, eax
call fcn.00543eb0
movzx ecx, al
test ecx, ecx
jne 0x590fc5
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00545090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.0044a910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00401d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403270
mov eax, dword [ebp - 0xe0]
jmp 0x591092
push 0x6214f8
push 0x6214f4
lea ecx, [ebp - 0x24]
call fcn.005462d0
mov ecx, eax
call fcn.005462d0
mov ecx, eax
call fcn.00543e60
movzx edx, al
test edx, edx
je 0x591040
mov dword [ebp - 0xe4], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00545090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.0044a910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00401d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403270
mov eax, dword [ebp - 0xe4]
jmp 0x591092
mov dword [ebp - 0xe8], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00545090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.0044a910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00401d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403270
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret