Function at 0x42a469
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0xa4], eax
lea esi, [ebx + 0x34]
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0xbc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call fcn.0042abdb
mov edi, eax
test edi, edi
jne 0x42a94b
push 0xfde9
push dword [ebp - 0xac]
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xb4], edi
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xa0], eax
call fcn.0040b6f4
lea eax, [ebx + 0x1c]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xa8], eax
jb 0x42a4fb
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa0]
add ebx, 0x4c
mov dword [ebp - 0xac], ecx
test eax, eax
je 0x42a8ea
test ecx, ecx
je 0x42a8ea
cmp dword [ebp - 0xa4], edi
je 0x42a8ea
cmp dword [ebp + 0x10], edi
je 0x42a8ea
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x42a539
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x42a565
push dword [ebp - 0xa8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push dword [ebp - 0xa8]
mov ecx, ebx
call fcn.004078d0
mov dword [ebx + 0x18], edi
push ebx
call fcn.00428d3a
mov edi, eax
test edi, edi
jne 0x42a8ef
cmp dword [ebx + 0x18], eax
jne 0x42a58a
push ebx
call fcn.00428e1f
mov edi, eax
test edi, edi
jne 0x42a8ef
mov edi, dword [ebp - 0xac]
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xf
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00404460
mov edi, str._json
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00407730
mov edi, dword [ebp - 0xa4]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00407730
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xb8], eax
add eax, 4
push eax
call fcn.004b2ff6
mov edi, eax
mov dword [ebp - 0xa8], edi
pop ecx
test edi, edi
jne 0x42a64d
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x42a643
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], eax
cmp eax, 0x1000
jb 0x42a63a
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00402840
mov eax, dword [ebp - 0xa4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa8]
push eax
push ecx
call fcn.004b2fe8
pop ecx
pop ecx
mov edi, 0xe00c001e
jmp 0x42a8ef
push 4
lea eax, [ebp - 0xb8]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push dword [ebp - 0xb8]
cmovae eax, dword [ebp - 0x1c]
push eax
lea eax, [edi + 4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xb8]
add esp, 0x18
add eax, 4
push eax
push edi
push ebx
call fcn.0042b6f5
mov edi, eax
lea eax, [ebp - 0xb0]
test edi, edi
je 0x42a6ff
push eax
lea eax, [ebp - 0xb4]
mov ecx, ebx
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004290b0
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x42a8ef
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], eax
cmp eax, 0x1000
jb 0x42a6f1
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00402840
mov eax, dword [ebp - 0xa4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa8]
push eax
push ecx
call fcn.004b2fe8
pop ecx
pop ecx
jmp 0x42a8ef
push 4
push eax
push ebx
call fcn.0042ab92
mov edi, eax
test edi, edi
je 0x42a716
lea eax, [ebp - 0xb0]
jmp 0x42a697
cmp dword [ebp - 0xb0], 0
jne 0x42a78e
lea eax, [ebp - 0xb0]
mov ecx, ebx
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004290b0
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x42a784
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], ecx
cmp eax, 0x1000
jb 0x42a77b
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00402840
mov eax, dword [ebp - 0xa4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa8]
push eax
push ecx
call fcn.004b2fe8
pop ecx
pop ecx
mov edi, 0xe00c0010
jmp 0x42a8ef
push dword [ebp - 0xb0]
call fcn.004b2ff6
mov edi, eax
mov dword [ebp - 0xb4], edi
pop ecx
test edi, edi
jne 0x42a7c7
lea eax, [ebp - 0xb0]
mov ecx, ebx
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004290b0
jmp 0x42a5fa
mov edx, dword [ebp - 0xb0]
xor eax, eax
mov dword [ebp - 0xc0], edx
mov ecx, eax
test edx, edx
jmp 0x42a814
push eax
mov dword [ebp - 0xa4], eax
sub edx, ecx
lea eax, [ebp - 0xa4]
push eax
push edx
lea eax, [ecx + edi]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a877
mov ecx, dword [ebp - 0xac]
add ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xc0]
cmp edx, ecx
push 0
pop eax
mov dword [ebp - 0xac], ecx
jne 0x42a7db
push dword [ebp - 0xa8]
call fcn.004b2fff
mov eax, dword [ebp - 8]
pop ecx
cmp eax, 0x10
jb 0x42a871
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa4], ecx
cmp eax, 0x1000
jb 0x42a868
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00402840
mov eax, dword [ebp - 0xac]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa4]
push eax
push ecx
call fcn.004b2fe8
pop ecx
pop ecx
xor ebx, ebx
mov edi, ebx
jmp 0x42a8f1
push edi
call fcn.004b2fff
pop ecx
lea eax, [ebp - 0xb0]
mov ecx, ebx
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004290b0
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x42a8e3
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa4], ecx
cmp eax, 0x1000
jb 0x42a8da
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00402840
mov eax, dword [ebp - 0xac]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa4]
push eax
push ecx
call fcn.004b2fe8
pop ecx
pop ecx
mov edi, 0xe00c000b
jmp 0x42a8ef
mov edi, 0xe00c000d
xor ebx, ebx
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x42a90c
push dword [ebp - 0xa0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test edi, edi
jne 0x42a94b
mov edi, 0x611ea8
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
mov ecx, dword [ebp - 0xbc]
push eax
push edi
call fcn.00404460
push dword [ebp - 0xb0]
mov edi, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xbc]
push edi
push ebx
call fcn.00405710
push edi
call fcn.004b2fff
pop ecx
jmp 0x42a94d
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret 0x10