Function at 0x414600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471a9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ecx]
mov dword [ebp - 0x14], ecx
call dword [eax + 0x24]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040276c
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + 0x43e]
test edx, edx
jne 0x41466a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040275c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
movzx edx, byte [eax + 0x42c]
test edx, edx
jne 0x414680
movzx edx, byte [eax + 0x43d]
test edx, edx
je 0x4146a4
mov ecx, eax
call fcn.00414988
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040275c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, eax
lea eax, [edx + 0x430]
push 0
push eax
push 0x2000
push dword [edx + 0x2c0]
push dword [edx + 0x428]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4146e0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x430]
test ecx, ecx
je 0x4146f9
mov byte [eax + 0x43d], 1
jmp 0x4146f9
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x430]
test ecx, ecx
jne 0x4146f9
mov byte [eax + 0x42c], 1
jmp 0x41494c
xor ebx, ebx
mov esi, dword [eax + 0x440]
mov dword [ebp - 0x40], 0
test esi, esi
je 0x414779
mov edx, dword [eax + 0x444]
cmp edx, dword [eax + 0x448]
jge 0x414779
add esi, edx
mov eax, dword [esi]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x414732
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x430]
jmp 0x414779
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x444]
add eax, 4
mov dword [edx + 0x444], eax
xor ecx, ecx
push ecx
push ecx
push ecx
call fcn.00449b8c
mov edx, dword [ebp - 0x14]
push dword [edx + 0x430]
push dword [edx + 0x2c0]
push eax
call fcn.00449b8c
add esp, 0x18
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x430]
cmp eax, dword [ebp - 0x40]
jne 0x414779
mov ebx, 1
test ebx, ebx
jne 0x4148e8
mov edx, 0x2400
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], 0x2400
movzx esi, byte [eax + 0x43c]
test esi, esi
je 0x4147d2
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
push ecx
push dword [edx + 0x2c0]
push eax
push dword [edx + 0x2c4]
call fcn.00449b70
add esp, 0x10
test eax, eax
jne 0x4148a1
mov ebx, 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x430]
mov edx, dword [ebp - 0x3c]
cmp edx, ecx
jbe 0x4147d8
xor ebx, ebx
mov byte [ebp - 0x38], 7
test ebx, ebx
mov byte [ebp - 0x37], 5
je 0x4147eb
mov eax, 0x1000000
jmp 0x4147f0
mov eax, 0
mov dword [ebp - 0x34], eax
je 0x414820
mov eax, edx
and eax, 0xff000000
shr eax, 0x18
mov ecx, edx
and ecx, 0xff0000
shr ecx, 8
or eax, ecx
mov esi, edx
and esi, 0xff00
shl esi, 8
or eax, esi
shl edx, 0x18
or eax, edx
jmp 0x414849
mov eax, ecx
and eax, 0xff000000
shr eax, 0x18
mov edx, ecx
and edx, 0xff0000
shr edx, 8
or eax, edx
mov esi, ecx
and esi, 0xff00
shl esi, 8
or eax, esi
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x14]
push 7
mov ecx, dword [edx + 0xe8]
push 0xc
push eax
call fcn.00446684
test ebx, ebx
je 0x414882
push dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xe8]
push dword [eax + 0x2c4]
call fcn.004466e4
jmp 0x41493d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xe8]
push dword [eax + 0x430]
push dword [eax + 0x2c0]
call fcn.004466e4
jmp 0x41493d
push eax
push 0x4992e0
push 9
push 0x481eac
call fcn.00407ffc
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x43d], 1
call fcn.00414988
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040275c
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, 7
mov esi, ecx
and esi, 0xff000000
mov byte [ebp - 0x2c], al
shr esi, 0x18
mov edx, ecx
mov byte [ebp - 0x2b], 5
and edx, 0xff0000
shr edx, 8
mov dword [ebp - 0x28], 0x2000000
or esi, edx
mov ebx, ecx
and ebx, 0xff00
shl ebx, 8
or esi, ebx
shl ecx, 0x18
or esi, ecx
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0xe8]
push eax
push 0xc
push edi
call fcn.00446684
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x430]
add dword [edx + 0x434], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
push dword [0x493164]
call fcn.00444908
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040275c
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret