Function at 0x411124
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov ebx, eax
or esi, 0xffffffff
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00410cf0
test eax, eax
je 0x411163
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x411444
push 0
xor ecx, ecx
mov edx, 0x184
mov eax, dword [ebx + 0xc4]
call fcn.00408de8
push 0
xor ecx, ecx
mov edx, 0x184
mov eax, dword [ebx + 0xd0]
call fcn.00408de8
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
sub eax, 0x11
je 0x4111b3
dec eax
je 0x4111f0
jmp 0x411275
push 0
lea eax, [ebp - 0x18]
push eax
push 0x1d
lea eax, [ebp - 0x70]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x18], 0
je 0x411444
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x18], 0
je 0x411444
jmp 0x411275
push 0
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x70]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x18], 0
je 0x411444
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x18], 0
je 0x411444
and dword [ebp - 0x14], 0xffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x28]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x18], 0
je 0x411444
and dword [ebp - 0x28], 0xffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x2c]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x18], 0
je 0x411444
and dword [ebp - 0x2c], 0xffff
cmp dword [ebp - 0x14], 0
je 0x411444
mov eax, dword [0x43befc]
cmp eax, dword [ebp - 0x14]
jge 0x41128c
mov dword [ebp - 0x14], eax
push 0
xor ecx, ecx
mov edx, 0xb
mov eax, dword [ebx + 0xd0]
call fcn.00408de8
mov eax, 0x400
call fcn.004024ec
mov dword [ebp - 4], eax
mov eax, 0x21
call fcn.004024ec
mov edi, eax
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x4113c8
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0xc]
sub eax, 0x12
jne 0x411326
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x18], 0
je 0x4113c8
mov eax, dword [ebp - 0x1c]
and eax, 0x3ff
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
shr eax, 0xa
and eax, 0x3f
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x20
jbe 0x411326
mov dword [ebp - 0x24], 0x20
cmp dword [ebp - 0x18], 0
je 0x4113c8
push 0x400
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_RtlZeroMemory
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x18], 0
je 0x4113c8
push 0x21
push edi
call sub.kernel32.dll_RtlZeroMemory
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
push edi
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x18], 0
je 0x4113c8
push edi
xor ecx, ecx
mov edx, 0x180
mov eax, dword [ebx + 0xd0]
call fcn.00408de8
push 0
mov ecx, dword [ebp - 0x10]
mov edx, 0x19a
mov eax, dword [ebx + 0xd0]
call fcn.00408de8
push ebp
call fcn.004110d0
pop ecx
mov eax, dword [ebp - 4]
push eax
xor ecx, ecx
mov edx, 0x180
mov eax, dword [ebx + 0xc4]
call fcn.00408de8
inc dword [ebp - 0x10]
dec dword [ebp - 0x30]
jne 0x4112d0
mov eax, dword [ebp - 4]
call fcn.0040250c
mov eax, edi
call fcn.0040250c
push 0
mov ecx, 1
mov edx, 0xb
mov eax, dword [ebx + 0xd0]
call fcn.00408de8
mov eax, dword [ebx + 0xd0]
call fcn.00408d88
cmp dword [ebp - 0x18], 0
je 0x411444
cmp dword [ebp + 8], 0
je 0x41141a
push 1
mov ecx, dword [ebp - 0x2c]
mov edx, 0x19a
mov eax, dword [ebx + 0xd0]
call fcn.00408de8
push 0
mov ecx, dword [ebp - 0x2c]
mov edx, 0x186
mov eax, dword [ebx + 0xd0]
call fcn.00408de8
push 0
mov ecx, dword [ebp - 0x28]
mov edx, 0x197
mov eax, dword [ebx + 0xd0]
call fcn.00408de8
cmp esi, 0xffffffff
je 0x41144f
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
call fcn.00415530
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4