Function at 0x1001372a
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov eax, 0x1008ec16
call fcn.10006db8
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
je 0x100139d4
push 0x100b0574
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0x18], eax
je 0x1001397a
push str.UTF_8
mov dword [ebp - 4], edi
call fcn.10013de5
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 0x1c], esi
je 0x10013906
push 0x10013455
push 0x10013422
push esi
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
call fcn.1001472f
push 0x10013531
push esi
call fcn.1001475a
push esi
call fcn.1001466a
push dword [ebp + 8]
push esi
call fcn.100146ba
mov esi, 0x4000
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 0x24
cmp ebx, edi
mov dword [ebp - 0x20], ebx
je 0x1001388a
mov ecx, dword [ebp + 8]
call fcn.100105a6
push dword [ebp - 0x18]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
push ebx
call edi
add esp, 0x10
test eax, eax
je 0x10013861
xor ecx, ecx
cmp eax, esi
setne cl
push ecx
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.100148f0
add esp, 0x10
test eax, eax
jne 0x10013858
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x1001383e
push dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push str.cannot_parse_XML_file__s
push eax
call fcn.1000def0
or dword [ebp - 0x14], 1
add esp, 0xc
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.1000f2e3
jmp 0x10013840
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push 0x100a9868
push eax
mov dword [ebp - 4], 4
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x18]
push esi
push 1
push ebx
jmp 0x100137e2
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x1c]
call fcn.10014522
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
je 0x100138d1
mov dword [ebp - 0x14], 2
lea eax, [ebp + 0xf]
lea ecx, [ebp - 0x40]
push eax
push str.out_of_memory
mov byte [ebp - 4], 7
call fcn.100067e5
mov dword [ebp - 0x14], 6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 8
call fcn.1000f3d5
jmp 0x100138d3
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x100a9d68
push eax
mov dword [ebp - 4], 0xa
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x1c]
call fcn.10014522
pop ecx
pop ecx
push 0
push 0
call sub.MSVCRT.dll__CxxThrowException
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
je 0x1001394d
mov dword [ebp - 0x14], 8
lea eax, [ebp + 0xf]
lea ecx, [ebp - 0x40]
push eax
push str.cannot_create_XML_parser
mov byte [ebp - 4], 0xe
call fcn.100067e5
mov dword [ebp - 0x14], 0x18
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 0xf
call fcn.1000f2e3
jmp 0x1001394f
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push 0x100a9868
push eax
mov dword [ebp - 4], 0x11
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 0
push 0
call sub.MSVCRT.dll__CxxThrowException
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov dword [ebp - 4], 0x13
je 0x100139ba
push dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push str.cannot_open_file__s_for_reading
push eax
call fcn.1000def0
add esp, 0xc
mov dword [ebp - 0x14], 0x20
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0x14
call fcn.1000f59a
jmp 0x100139bc
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 0x100a96f8
push eax
mov dword [ebp - 4], 0x15
call sub.MSVCRT.dll__CxxThrowException
call fcn.1000fc0d
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push 0x100a9ce0
push eax
call sub.MSVCRT.dll__CxxThrowException