Function at 0x10005537
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
push 0
push 0
push dword [0x1001c7a0]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
push dword [0x1001c7bc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov edx, dword [0x1001c7bc]
mov ecx, eax
call fcn.100054a7
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0xffffffff
mov eax, dword [str.parkin.eps]
nop
nop
cmp word [edi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x10005587
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x100055a7
mov edx, ecx
jmp 0x100055ba
mov word [edi + ecx*2], 0
lea edx, [ecx - 1]
cmp word [edi + ecx*2 - 4], 0x5c
mov ecx, edx
jne 0x100055a7
movzx ecx, byte [eax]
test cl, cl
je 0x100055d8
lea edx, [edi + edx*2]
xor esi, esi
nop
movsx ecx, cl
mov word [edx + esi*2], cx
movzx ecx, byte [eax + esi + 1]
inc esi
test cl, cl
jne 0x100055c7
push 0
push 0x80
push 3
push 0
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10005790
mov edi, eax
push dword [0x1001c7ac]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push edi
call eax
mov ebp, eax
mov esi, dword [0x1001c790]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, ebx
mov ebx, eax
mov edx, dword [0x1001c790]
mov ecx, eax
call fcn.100054a7
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10005790
mov edi, esi
mov ebp, dword [esp + 4]
add ebp, ebx
mov edx, dword [0x1001c7c4]
lea esi, [ebx + edx]
mov eax, dword [ebx + edx]
test eax, eax
je 0x1000567f
mov ecx, dword [ebx + edx + 4]
lea edx, [edx + ebx + 8]
nop
nop
nop
add dword [edx], ecx
add edx, 4
dec eax
jne 0x10005677
mov ebx, dword [0x1001c794]
lea eax, [esi + ebx + 1]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10005790
add esi, ebx
movsx ebx, byte [esi]
lea ecx, [esi + ebx + 1]
push ecx
push edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10005790
add esi, ebx
movsx ebx, byte [esi]
lea eax, [esi + ebx + 1]
push eax
call edi
test eax, eax
je 0x10005790
mov edi, eax
add esi, ebx
movsx eax, byte [esi]
lea ebx, [esi + eax]
add ebx, dword [0x1001c7b4]
mov edx, dword [esi + eax + 8]
lea ecx, [ebx + edx]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0x3c]
add edi, dword [edi + ecx + 0x2c]
mov eax, dword [esi + eax + 4]
add eax, edi
mov dword [esp + 0x10], eax
mov dword [esp], 0
mov eax, esp
push eax
push dword [0x1001c7b0]
push edx
push edi
mov esi, dword [esp + 0x24]
call esi
mov ecx, edi
mov edx, ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.100054e7
add esp, 4
mov eax, esp
push eax
push dword [esp + 4]
push ebx
push edi
call esi
mov eax, dword [str.riband.ai]
cmp byte [eax], 0
je 0x1000576a
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [str.riband.ai]
movsx ecx, byte [ecx + eax]
mov word [ebp + eax*2], cx
lea ecx, [eax + 1]
mov edx, dword [str.riband.ai]
cmp byte [edx + eax + 1], 0
mov eax, ecx
jne 0x10005747
jmp 0x1000576c
xor ecx, ecx
mov word [ebp + ecx*2], 0
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov byte [esp + 0x20], 1
lea eax, [esp + 0x18]
push eax
call dword [esp + 0x14]
add esp, 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret