Function at 0x455a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cd4cc
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [eax + 4], esi
mov dword [esp + 0x18], eax
mov eax, dword [eax]
cmp dword [eax], 0xffffffff
je 0x455c04
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00440400
test al, al
je 0x455c04
mov ebx, dword [esp + 0x20]
cmp ebx, esi
mov edi, dword [esp + 0x1c]
ja 0x455aa3
jb 0x455a93
cmp edi, 2
jae 0x455aa3
mov eax, dword [esp + 0x18]
mov dword [eax + 4], 1
jmp 0x455b34
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov dword [esp + 0x1c], esi
cmp dword [eax], 0xffffffff
je 0x455c04
push esi
lea edx, [esp + 0x20]
push edx
push 2
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], esi
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x455c04
mov ecx, dword [esp + 0x1c]
test ecx, ecx
seta al
test al, al
je 0x455c04
cmp ecx, 2
jne 0x455c04
mov al, byte [esp + 0x14]
cmp al, 0xff
jne 0x455b1a
cmp byte [esp + 0x15], 0xfe
jne 0x455b29
mov eax, dword [esp + 0x18]
mov dword [eax + 4], 4
mov esi, ecx
jmp 0x455b34
cmp al, 0xfe
jne 0x455b29
cmp byte [esp + 0x15], 0xff
je 0x455c04
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], 1
mov edx, dword [esp + 0x18]
mov eax, 0
push eax
push eax
sub edi, esi
sbb ebx, eax
mov eax, dword [edx]
push esi
lea esi, [esp + 0x28]
call fcn.00440450
test al, al
je 0x455c04
xor eax, eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], 0x4d809c
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00401c90
push edi
mov dword [esp + 0xd4], 0
mov eax, dword [esp + 0x28]
push 0
push eax
call fcn.004aef60
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov ecx, dword [ecx]
add esp, 0xc
push edi
lea esi, [esp + 0x34]
call fcn.004403c0
test al, al
je 0x455bfb
xor esi, esi
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], esi
mov word [esp + 0x8c], si
mov edx, dword [esp + 0x18]
mov byte [esp + 0xd0], 1
mov eax, dword [edx + 4]
sub eax, 1
je 0x455cba
sub eax, 1
je 0x455c6e
sub eax, 2
je 0x455c2c
lea esi, [esp + 0x88]
call fcn.0046b6e0
lea ecx, [esp + 0x1c]
call fcn.00401c60
xor al, al
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004a9ce9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x24]
shrd edi, ebx, 1
push edi
lea eax, [esp + 0x54]
shr ebx, 1
call fcn.004339b0
push 0xffffffffffffffff
push esi
push eax
lea eax, [esp + 0x94]
mov byte [esp + 0xdc], 2
call fcn.004017c0
lea esi, [esp + 0x50]
mov byte [esp + 0xd0], 1
call fcn.0046b6e0
jmp 0x455d1a
mov ecx, dword [esp + 0x24]
push edi
lea esi, [esp + 0xa8]
call fcn.00413d10
lea eax, [esp + 0x6c]
push eax
mov edx, 0xfde9
mov eax, esi
mov byte [esp + 0xd4], 5
call fcn.00433270
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea eax, [esp + 0x94]
mov byte [esp + 0xdc], 6
call fcn.004017c0
lea esi, [esp + 0x6c]
jmp 0x455d01
mov ecx, dword [esp + 0x24]
push edi
lea esi, [esp + 0xa8]
call fcn.00413d10
lea ecx, [esp + 0x34]
push ecx
xor edx, edx
mov eax, esi
mov byte [esp + 0xd4], 3
call fcn.00433270
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea eax, [esp + 0x94]
mov byte [esp + 0xdc], 4
call fcn.004017c0
lea esi, [esp + 0x34]
call fcn.0046b6e0
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd0], 1
call fcn.00413d80
lea edx, [esp + 0x88]
push edx
lea esi, [esp + 0x38]
call fcn.004337f0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov eax, dword [esp + 0x24]
add eax, 8
mov byte [esp + 0xdc], 7
call fcn.004017c0
call fcn.0046b6e0
lea esi, [esp + 0x88]
call fcn.0046b6e0
lea ecx, [esp + 0x1c]
call fcn.00401c60
mov al, 1
jmp 0x455c06