Function at 0x511af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dd7f
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5f8310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
push 0x5bcbdc
push str.c:printt.txt
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x78], 0
je 0x511c36
push 0x5b758b
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 4
test eax, eax
jne 0x511c14
mov ecx, dword [ebp - 0x78]
push ecx
push 1
push 1
lea edx, [ebp - 0x79]
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
movsx eax, byte [ebp - 0x79]
cmp eax, 0xa
jne 0x511bc7
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
cmp eax, 5
jge 0x511bab
push 0x5b758f
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004154f0
push 0x5b7aaf
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_820]
jmp 0x511c0f
movzx edx, byte [ebp - 0x79]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00421f10
add esp, 0xc
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x511b5c
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x511d99
push 0x5f87ac
lea ecx, [ebp - 0x74]
call fcn.005686b0
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push str.usertabb058
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [ebp - 0x98], eax
call fcn.004ba3a0
add esp, 4
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x511c99
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.005687e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x511d99
push str.select__from_usertabb058_order_by_itemid
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 8
push 3
push 0
push 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0x74]
call fcn.005688c0
lea ecx, [ebp - 0x74]
call fcn.00569470
test eax, eax
je 0x511cf8
lea ecx, [ebp - 0x74]
call fcn.00568de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.005687e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x511d99
lea ecx, [ebp - 0x74]
call fcn.00569470
test eax, eax
jne 0x511d75
lea eax, [ebp - 0x88]
push eax
push 0x5bcc28
lea ecx, [ebp - 0x74]
call fcn.0056e800
mov ecx, eax
call fcn.00408d40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
cmp eax, 2
jge 0x511d5f
push 0x5b7f3a
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.004154f0
lea ecx, [ebp - 0x74]
call fcn.00569110
jmp 0x511cf8
lea ecx, [ebp - 0x74]
call fcn.00568de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.005687e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4