Function at 0x1004fa60
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100ad8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100de040]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [esp + 0x78]
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x90]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x70], ebp
cmp ebx, 0xffffffff
je 0x1004fc94
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 2
push ebp
or ecx, 0xffffffff
push ecx
lea eax, [ebp - 0x20]
push eax
push ebx
call edi
test eax, eax
je 0x1004fc8d
push ebp
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20
lea edx, [esp + 0x50]
push edx
push ebx
mov byte [esp + 0x58], 0
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov word [esp + 0x75], ax
mov byte [esp + 0x77], al
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004fc8d
lea eax, [ebp + 8]
xor ecx, ecx
jmp 0x1004fb40
mov edx, dword [esp + ecx + 0x44]
cmp edx, dword [ecx + str.APETAGEX]
jne 0x1004fc8d
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x1004fb40
mov esi, dword [esp + 0x50]
xor eax, eax
lea ecx, [esi + 0x20]
neg ecx
push 2
adc eax, ebp
push ebp
neg eax
push eax
push ecx
push ebx
call edi
test eax, eax
je 0x1004fc8d
lea ebp, [esi + 1]
push 0x100e33b4
push ebp
call fcn.100628bb
mov edi, eax
add esp, 8
mov dword [esp + 0x40], edi
mov byte [esp + 0x70], 1
test edi, edi
jne 0x1004fbab
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8007000e
jmp 0x1004fc96
push ebp
push 0
push edi
call fcn.10064e10
add esp, 0xc
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004fc84
cmp dword [esp + 0x18], esi
jne 0x1004fc84
mov eax, str.APETAGEX
mov edx, edi
mov ecx, 8
sub edx, eax
jmp 0x1004fbf0
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x1004fc84
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x1004fbf0
mov eax, dword [edi + 0x10]
mov ebp, 0x20
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x1004fc84
lea ebx, [ebx]
mov ecx, dword [edi + ebp]
mov dword [esp + 0x20], ecx
lea ecx, [edi + ebp + 8]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004fc30
sub eax, esi
mov dword [esp + 0x24], eax
cmp eax, 8
jne 0x1004fc6c
mov esi, eax
mov edx, str.Cuesheet
mov eax, ecx
sub eax, edx
lea ecx, [ecx]
cmp esi, 4
jb 0x1004fcb7
mov ebx, dword [eax + edx]
cmp ebx, dword [edx]
mov ebx, dword [esp + 0x1c]
jne 0x1004fc68
sub esi, 4
add edx, 4
jmp 0x1004fc50
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add eax, edx
lea ebp, [eax + ebp + 9]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [edi + 0x10]
jb 0x1004fc20
push edi
call fcn.100628c6
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.10062448
add esp, 0x60
ret 8
mov eax, dword [esp + 0x14]
add ecx, 9
cmp eax, dword [edi + 0x10]
jae 0x1004fc84
mov eax, dword [esp + 0x28]
lea edx, [eax + 0x2c]
add eax, 0x350
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], edx
call fcn.100539e0
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call fcn.100628c6
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1004fc96