Function at 0x42a830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465775
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x497060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44c], ecx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp - 0x44c]
add ecx, 4
call fcn.00408270
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0xffffffff
jne 0x42a8bb
mov ecx, dword [ebp - 0x44c]
add ecx, 4
call fcn.00408270
push eax
push 0x470100
push 0xffffffffffffffff
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLog]
add esp, 0xc
jmp 0x42ac0f
lea ecx, [ebp - 0x444]
call fcn.00428790
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x42a95d
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x414], 0
push 0x400
push 0
lea ecx, [ebp - 0x413]
push ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
push 0
lea edx, [ebp - 0x41c]
push edx
push 0x400
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x41c], 0
jbe 0x42a944
lea edx, [ebp - 0x414]
push edx
lea ecx, [ebp - 0x444]
call fcn.004279f0
cmp dword [ebp - 0x468], 0
je 0x42a956
cmp dword [ebp - 0x41c], 0
jne 0x42a958
jmp 0x42a95d
jmp 0x42a8cd
mov eax, dword [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x44c]
call fcn.0042a410
lea ecx, [ebp - 0x444]
call fcn.00447b60
push eax
lea ecx, [ebp - 0x418]
call fcn.0041e1f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x418]
call fcn.00406f00
test eax, eax
je 0x42abee
push 6
lea ecx, [ebp - 0x418]
call fcn.00406f00
mov ecx, eax
call fcn.0041dad0
movzx ecx, al
test ecx, ecx
je 0x42abee
lea ecx, [ebp - 0x418]
call fcn.00406f00
mov dword [ebp - 0x46c], eax
push 1
lea ecx, [ebp - 0x42c]
call fcn.00427580
mov edx, dword [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x42c]
call fcn.00448cb0
lea ecx, [ebp - 0x42c]
call fcn.004270d0
movzx eax, al
test eax, eax
jne 0x42abee
lea ecx, [ebp - 0x42c]
call fcn.00427120
mov ecx, eax
call fcn.00428770
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
mov dword [ebp - 0x420], eax
lea ecx, [ebp - 0x478]
push ecx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x1c
call fcn.004162c0
push eax
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x47c]
push eax
mov ecx, dword [ebp - 0x44c]
add ecx, 0x1c
call fcn.0042ad00
mov ecx, eax
call fcn.00416ae0
movzx ecx, al
test ecx, ecx
je 0x42abc7
push 0
push 0x498fd8
push 0x498fbc
lea ecx, [ebp - 0x42c]
call fcn.00427140
push 0
push eax
call sub.MSVCR110.dll___RTDynamicCast
add esp, 0x14
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0
je 0x42abc5
push 0xc
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x458], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x458], 0
je 0x42aae1
push 1
mov ecx, dword [ebp - 0x458]
call fcn.00402f80
mov ecx, dword [ebp - 0x458]
call fcn.00406dd0
mov dword [ebp - 0x460], eax
jmp 0x42aaeb
mov dword [ebp - 0x460], 0
mov edx, dword [ebp - 0x460]
mov dword [ebp - 0x474], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x450], 0
jmp 0x42ab22
mov ecx, dword [ebp - 0x450]
add ecx, 1
mov dword [ebp - 0x450], ecx
mov ecx, dword [ebp - 0x45c]
call fcn.00429ed0
cmp dword [ebp - 0x450], eax
jae 0x42aba8
mov dword [ebp - 0x448], 0
lea edx, [ebp - 0x448]
push edx
mov eax, dword [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x45c]
call fcn.00449200
cmp dword [ebp - 0x448], 0
je 0x42aba3
mov dword [ebp - 0x424], 0
lea ecx, [ebp - 0x424]
push ecx
mov edx, dword [ebp - 0x448]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x448]
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x470], eax
lea ecx, [ebp - 0x470]
push ecx
mov ecx, dword [ebp - 0x464]
call fcn.004121d0
jmp 0x42ab13
lea edx, [ebp - 0x420]
push edx
mov ecx, dword [ebp - 0x44c]
add ecx, 0x1c
call fcn.0042ac30
mov ecx, dword [ebp - 0x464]
mov dword [eax], ecx
jmp 0x42abde
mov edx, dword [ebp - 0x420]
push edx
push 0x470138
push 0xffffffffffffffff
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLog]
add esp, 0xc
lea ecx, [ebp - 0x42c]
call fcn.00427100
jmp 0x42a9f2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x418]
call fcn.0041e140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.0041d420
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460da6
mov esp, ebp
pop ebp
ret