Function at 0x402050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4383f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x42ddb4
push 0x255af80
xor ebx, ebx
call fcn.0041b098
mov esi, eax
add esp, 8
test esi, esi
jne 0x4020a2
push 0x255af80
push str.Failed_to_open_JSON_formatted_input_file__s
push 0x910
push str.metacli_json_in
push 2
call fcn.00401000
add esp, 0x14
push 1
call fcn.00401c50
push esi
call fcn.0041ccfe
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.0041977b
add esp, 8
test eax, eax
je 0x4020cd
push 0x255af80
push str.Failed_to_get_json_file_size__s
push 0x918
jmp 0x40208c
mov edi, dword [ebp - 0x24]
push edi
call fcn.0041a5e2
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x40210a
mov edx, edi
push edx
push str.Failed_to_allocate_JSON_memory_of_length__ld
push 0x921
push str.metacli_json_in
push 2
call fcn.00401000
add esp, 0x14
push esi
call fcn.0041bc41
add esp, 4
jmp 0x40209b
mov eax, dword [ebp - 0x3c]
push esi
mov ecx, edi
sub ecx, ebx
push ecx
push 1
push eax
call fcn.0041b2f9
add esp, 0x10
add ebx, eax
test eax, eax
jne 0x402107
push esi
call fcn.0041bc41
add esp, 4
cmp ebx, edi
jae 0x40214d
push 0
push ebx
push edi
push str.File_size__d_was_larger_than_total_data_read__llu_from_json_file.
push 0x930
push str.metacli_json_in
push 3
call fcn.00401000
add esp, 0x1c
mov edi, ebx
mov ebx, dword [ebp - 0x3c]
push edi
mov esi, ebx
call fcn.00401e60
lea esi, [ebx + edi]
mov edi, dword [ebp - 0x3c]
add esp, 4
mov bl, 0x7b
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], esi
call fcn.00401ea0
cmp eax, 0xffffffff
jne 0x402187
push eax
push str.Failed_to_find_open_bracket__for_json_file__d
push 0x940
jmp 0x402316
mov edx, edi
lea edi, [eax + edx + 1]
cmp edi, esi
ja 0x4022d3
cmp dword [ebp - 0x48], 0
jne 0x4022d3
mov bl, 0x22
call fcn.00401ea0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4022ef
lea esi, [edi + ebx + 1]
push 0x42deec
push esi
call fcn.0041a680
add esp, 8
test eax, eax
je 0x4022fd
lea edi, [eax + 1]
push 0x42df20
push edi
mov byte [eax], 0
call fcn.0041a680
push 0x42df24
push edi
mov dword [ebp - 0x44], eax
call fcn.0041a680
mov edi, dword [ebp - 0x44]
add esp, 0x10
mov dword [ebp - 0x40], eax
test edi, edi
je 0x40230b
test eax, eax
je 0x40230b
inc edi
mov byte [eax], 0
mov dword [ebp - 0x44], edi
mov ecx, esi
mov eax, str.partition_patch
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402231
test dl, dl
je 0x40222d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402231
add eax, 2
add ecx, 2
test dl, dl
jne 0x402211
xor eax, eax
jmp 0x402236
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4022a7
mov ecx, esi
mov eax, str.partition
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402261
test dl, dl
je 0x40225d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402261
add eax, 2
add ecx, 2
test dl, dl
jne 0x402241
xor eax, eax
jmp 0x402266
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4022a7
mov ecx, esi
mov eax, str.partition_bin
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402291
test dl, dl
je 0x40228d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402291
add eax, 2
add ecx, 2
test dl, dl
jne 0x402271
xor eax, eax
jmp 0x402296
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4022b1
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
call fcn.00401f70
jmp 0x4022b1
mov ebx, dword [ebp - 0x40]
mov eax, edi
call fcn.00401ee0
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
inc edi
cmp edi, ecx
ja 0x4022d3
lea esp, [esp]
mov al, byte [edi]
cmp al, 0x7d
je 0x4022de
test al, al
je 0x4022de
inc edi
cmp al, 0x2c
je 0x4022e5
cmp edi, ecx
jbe 0x4022c0
mov eax, dword [0x23b6544]
test eax, eax
jne 0x402336
jmp 0x402343
mov dword [ebp - 0x48], 1
cmp edi, ecx
jbe 0x402195
jmp 0x4022d3
push 0xffffffffffffffff
push str.Failed_to_find_opening___on_json_input__d
push 0x94b
jmp 0x402316
inc ebx
push ebx
push str.Failed_to_find_closing___starting_at_offset__d
push 0x953
jmp 0x402316
push ebx
push str.JSON_file_format_not_as_expected__failed_to_path_array__d
push 0x95c
push str.metacli_json_in
push 2
call fcn.00401000
mov eax, dword [ebp - 0x3c]
add esp, 0x14
push eax
call fcn.00419701
add esp, 4
jmp 0x40209b
cmp byte [eax], 0
jne 0x402340
or eax, 0xffffffff
jmp 0x402343
mov eax, dword [eax + 8]
push eax
push str.Successfully_loaded__d_file_paths_from_json_input
push 0x97e
push str.metacli_json_in
push 4
call fcn.00401000
mov ecx, dword [ebp - 0x3c]
add esp, 0x14
push ecx
call fcn.00419701
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d55
mov esp, ebp
pop ebp
ret