Function at 0x4129a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41e7ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov esi, ecx
push 0x7d000
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x7d000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, dword [esp + 0x34]
push ebx
push ebx
push ebx
push ebp
mov edi, eax
call fcn.00407150
mov ebx, dword [esi + 0x1a54]
add esp, 0x14
test ebx, ebx
je 0x412a10
mov ecx, ebx
call fcn.004071e0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x1a54], 0
push 0x2c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x28], 0
je 0x412a35
push 0x34
mov ecx, eax
call fcn.004071a0
jmp 0x412a37
xor eax, eax
test eax, eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esi + 0x1a54], eax
je 0x412ea0
lea eax, [esp + 0x10]
push 0
push eax
push 0x1a
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 0x1a
jne 0x412ea0
mov ecx, dword [esi + 0x1a54]
push 0x1a
push edi
call fcn.00407460
mov ecx, dword [esi + 0x1a54]
call fcn.00407370
mov ecx, dword [esi + 0x1a54]
sub eax, 4
push eax
call fcn.00407360
push eax
call fcn.00402570
mov ecx, dword [esi + 0x1a54]
add esp, 8
mov ebx, eax
call fcn.00407650
mov ecx, dword [esi + 0x1a54]
push 8
call fcn.004072d0
mov ecx, dword [esi + 0x1a54]
push 8
mov byte [esi + 0x1a34], al
call fcn.004072d0
mov ecx, dword [esi + 0x1a54]
push 0x20
mov byte [esi + 0x1a35], al
call fcn.004072d0
mov ecx, dword [esi + 0x1a54]
push 0x20
mov dword [esi + 0x1a30], eax
call fcn.004072d0
mov ecx, dword [esi + 0x1a54]
push 0x20
mov dword [esi + 0x1a3c], eax
call fcn.004072d0
mov ecx, dword [esi + 0x1a54]
push 0x20
mov dword [esi + 0x1a40], eax
call fcn.004072d0
mov ecx, dword [esi + 0x1a54]
push 0x20
mov dword [esi + 0x1a38], eax
call fcn.004072d0
mov ecx, dword [esi + 0x1a54]
push 0x20
mov dword [esi + 0x1a44], eax
call fcn.004072d0
mov ecx, dword [esi + 0x1a54]
mov ebp, eax
call fcn.00407670
cmp ebx, ebp
je 0x412b71
mov eax, dword [esi + 0x1a78]
test eax, eax
je 0x412ea0
mov ecx, dword [esi + 0x1a7c]
push ecx
push 0x423fc0
call fcn.0040b080
add esp, 8
jmp 0x412ea0
mov ebx, dword [esi + 0x1a50]
xor ebp, ebp
cmp ebx, ebp
je 0x412b93
mov ecx, ebx
call fcn.004071e0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x1a50], ebp
mov ebx, dword [esi + 0x1a4c]
cmp ebx, ebp
je 0x412bb3
mov ecx, ebx
call fcn.004071e0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x1a4c], ebp
mov ebx, dword [esi + 0x1a48]
cmp ebx, ebp
je 0x412bd3
mov ecx, ebx
call fcn.004071e0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x1a48], ebp
push 0x2c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov dword [esp + 0x28], 1
je 0x412bfe
mov edx, dword [esi + 0x1a40]
mov ecx, eax
inc edx
push edx
call fcn.004071a0
jmp 0x412c00
xor eax, eax
or ebx, 0xffffffff
cmp eax, ebp
mov dword [esp + 0x28], ebx
mov dword [esi + 0x1a50], eax
je 0x412ea0
push 0x2c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x28], 2
je 0x412c40
mov ecx, dword [esi + 0x1a3c]
inc ecx
push ecx
mov ecx, eax
call fcn.004071a0
jmp 0x412c42
xor eax, eax
test eax, eax
mov dword [esp + 0x28], ebx
mov dword [esi + 0x1a4c], eax
je 0x412ea0
push 0x2c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x28], 3
je 0x412c7f
mov edx, dword [esi + 0x1a38]
mov ecx, eax
inc edx
push edx
call fcn.004071a0
jmp 0x412c81
xor eax, eax
test eax, eax
mov dword [esp + 0x28], ebx
mov dword [esi + 0x1a48], eax
je 0x412ea0
mov ebx, dword [esi + 0x1a38]
cmp ebx, 0x7d000
jbe 0x412cb8
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov ebp, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
mov edi, ebp
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x412ea0
mov ecx, dword [esi + 0x1a48]
push eax
push edi
call fcn.00407460
mov ecx, dword [esi + 0x1a48]
call fcn.00407370
mov ecx, dword [esi + 0x1a48]
sub eax, 4
push eax
call fcn.00407360
push eax
call fcn.00402570
mov ecx, dword [esi + 0x1a48]
add esp, 8
mov ebx, eax
call fcn.00407650
mov ecx, dword [esi + 0x1a48]
call fcn.00407370
mov ecx, dword [esi + 0x1a48]
sub eax, 4
push eax
call fcn.004075f0
mov ecx, dword [esi + 0x1a48]
push 0x20
call fcn.004072d0
mov ecx, dword [esi + 0x1a48]
mov ebp, eax
call fcn.00407670
cmp ebx, ebp
je 0x412d74
mov eax, dword [esi + 0x1a78]
test eax, eax
je 0x412ea0
mov edx, dword [esi + 0x1a7c]
push edx
push 0x423f8c
call fcn.0040b080
add esp, 8
jmp 0x412ea0
mov ebx, dword [esi + 0x1a3c]
mov eax, dword [esp + 0x14]
cmp ebx, eax
jbe 0x412d99
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov ebp, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
mov edi, ebp
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x412ea0
mov ecx, dword [esi + 0x1a4c]
push eax
push edi
call fcn.00407460
mov ecx, dword [esi + 0x1a4c]
call fcn.00407370
mov ecx, dword [esi + 0x1a4c]
sub eax, 4
push eax
call fcn.00407360
push eax
call fcn.00402570
mov ecx, dword [esi + 0x1a4c]
add esp, 8
mov ebx, eax
call fcn.00407650
mov ecx, dword [esi + 0x1a4c]
call fcn.00407370
mov ecx, dword [esi + 0x1a4c]
sub eax, 4
push eax
call fcn.004075f0
mov ecx, dword [esi + 0x1a4c]
push 0x20
call fcn.004072d0
mov ecx, dword [esi + 0x1a4c]
mov ebp, eax
call fcn.00407670
cmp ebx, ebp
je 0x412e4e
mov eax, dword [esi + 0x1a78]
test eax, eax
je 0x412ea0
mov edx, dword [esi + 0x1a7c]
push edx
push 0x423f58
call fcn.0040b080
add esp, 8
jmp 0x412ea0
mov ebx, dword [esi + 0x1a40]
mov eax, dword [esp + 0x14]
cmp ebx, eax
jbe 0x412e6f
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov ebp, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
mov edi, ebp
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x412ea0
mov ecx, dword [esi + 0x1a50]
push eax
push edi
call fcn.00407460
mov dword [esp + 0x18], 1
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x1c]
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x412f3b
mov edi, dword [esi + 0x1a54]
cmp edi, ebx
je 0x412ed7
mov ecx, edi
call fcn.004071e0
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x1a54], ebx
mov edi, dword [esi + 0x1a50]
cmp edi, ebx
je 0x412ef7
mov ecx, edi
call fcn.004071e0
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x1a50], ebx
mov edi, dword [esi + 0x1a4c]
cmp edi, ebx
je 0x412f17
mov ecx, edi
call fcn.004071e0
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x1a4c], ebx
mov edi, dword [esi + 0x1a48]
cmp edi, ebx
je 0x412f37
mov ecx, edi
call fcn.004071e0
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x1a48], ebx
xor eax, eax
jmp 0x412f40
mov eax, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4