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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x40], edx
push 0x406510
push ecx
mov dword [ebp - 0x4c], 0xffff
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402d20
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push ebx
call edi
add esp, 0xc
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
je 0x402d16
push 0
push 0
push ebx
call edi
xor ecx, ecx
add esp, 0xc
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x402d16
push ebx
push esi
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push ebx
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea eax, [esi + edi]
add esp, 0x14
mov byte [eax], 0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x40]
add eax, 0x49
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x40], eax
xor ebx, ebx
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov al, byte [edi]
mov ecx, edi
mov dword [ebp - 0x50], edi
mov edx, edi
inc edi
cmp al, 0x20
je 0x402a62
cmp al, 9
je 0x402a62
cmp al, 0xa
je 0x402a62
cmp al, 0xd
je 0x402a62
cmp al, 0x3c
je 0x402aaa
test al, al
je 0x402c95
cmp ebx, 1
jne 0x402a62
push str.xml:_unexpected_symbol_n
push 2
call esi
add esp, 4
push eax
call fcn.00401050
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp word [edi], 0x2d21
jne 0x402afb
cmp byte [edi + 2], 0x2d
jne 0x402afb
lea eax, [ecx + 4]
push 0x406680
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x402ca9
movsx ecx, byte [edi - 2]
movsx eax, byte [edi - 1]
sub ecx, 0x3c
sub eax, 0x21
or ecx, eax
je 0x402ca9
cmp byte [edi + 2], 0x3e
jne 0x402ca9
add edi, 3
jmp 0x402a62
cmp ebx, 1
je 0x402b64
mov ecx, edi
mov edx, str.Partitions_
mov esi, 7
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x402b38
add ecx, 4
add edx, 4
sub esi, 4
jae 0x402b10
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x402b38
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x402b38
mov eax, 1
jmp 0x402b3a
xor eax, eax
add ebx, eax
mov dword [ebp - 0x44], ebx
cmp ebx, 2
jg 0x402ce6
push 0x3e
push edi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x402cd3
inc edi
jmp 0x402a5c
cmp byte [edi], 0x2f
jne 0x402bb6
add ecx, 2
mov edx, str.Partitions_
mov esi, 7
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x402bb0
add ecx, 4
add edx, 4
sub esi, 4
jae 0x402b76
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x402bb0
mov al, byte [ecx + 2]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp al, byte [edx + 2]
jne 0x402bb6
mov edi, dword [ebp - 0x50]
mov ebx, 2
add edi, 0xd
mov dword [ebp - 0x44], ebx
jmp 0x402a62
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea eax, [ebp - 0x29]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
push str.Partition_id__35_____size__lli___n_c
push edi
call fcn.00401140
add esp, 0x18
cmp eax, 3
jne 0x402ca9
cmp byte [ebp - 0x29], 0x3e
jne 0x402ca9
mov eax, dword [ebp - 0x3c]
inc eax
add edi, eax
mov eax, dword [ebp - 0x4c]
cmp eax, 0x4c
jb 0x402d0c
mov esi, dword [ebp - 0x40]
sub eax, 0x4c
push 0x48
add esi, 0xffffffb7
mov dword [ebp - 0x4c], eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
movsx ecx, byte [ebp - 0x28]
add esp, 0xc
xor eax, eax
test ecx, ecx
je 0x402cf9
mov byte [esi + eax*2], cl
inc eax
movsx ecx, byte [ebp + eax - 0x28]
test ecx, ecx
jne 0x402c20
test eax, eax
je 0x402cf9
mov ebx, dword [ebp - 0x38]
mov ecx, ebx
mov esi, dword [ebp - 0x40]
mov edx, dword [ebp - 0x34]
mov eax, edx
shrd ecx, eax, 8
mov eax, edx
mov byte [esi], cl
mov ecx, ebx
shrd ecx, eax, 0x10
mov eax, ebx
mov byte [esi - 1], bl
shrd eax, edx, 0x18
push ebx
mov ebx, dword [ebp - 0x48]
mov byte [esi + 2], al
lea eax, [ebp - 0x28]
push eax
mov byte [esi + 1], cl
add esi, 0x4c
push ebx
push str.__d___s___d_n
mov dword [ebp - 0x40], esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call esi
add esp, 4
push eax
call fcn.00401050
add esp, 0x14
inc ebx
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x44]
jmp 0x402a62
cmp edx, dword [ebp - 0x54]
je 0x402ca4
push str.xml:_zero_byte
jmp 0x402a92
cmp ebx, 2
je 0x402cb3
push str.xml:_unexpected_syntax_n
jmp 0x402a92
push dword [ebp - 0x58]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x48]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00404e5a
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push str.xml:_unexpected_syntax_n
push 2
call eax
jmp 0x402a96
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push str.xml:_more_than_one_partition_lists_n
push 2
call eax
jmp 0x402a96
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push str.empty_partition_name_n
push 2
call eax
jmp 0x402a96
push str.xml:_too_many_partitions_n
jmp 0x402a92
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push str.loadfile_failed_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x402a96