Function at 0x420fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
mov dword [esp + 0xc], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00477890
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x536ee0]
test eax, eax
jle 0x4210d0
mov edx, dword [0x536ee4]
xor ebx, ebx
mov ecx, dword [edx + 0xc]
cmp ecx, esi
ja 0x420ff1
mov edi, dword [edx + 0x10]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x42106a
add ebx, 1
add edx, 0x14
cmp ebx, eax
jne 0x420fe0
mov dword [esp], esi
call fcn.004779f0
test eax, eax
mov edi, eax
je 0x4210f7
lea esi, [ebx + ebx*4]
mov ebx, dword [0x536ee4]
shl esi, 2
add ebx, esi
mov dword [ebx + 0x10], eax
mov dword [ebx], 0
call fcn.00477ae0
add eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x536ee4]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4210d7
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x421072
add dword [0x536ee0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x421063
cmp eax, 0x80
je 0x421063
cmp eax, 8
je 0x421063
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add esi, dword [0x536ee4]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x421063
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00420f60
nop
lea esi, [esi]
xor ebx, ebx
jmp 0x420ffb
mov eax, dword [0x536ee4]
mov eax, dword [eax + esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00420f60
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00420f60
mov esi, esi
lea edi, [edi]
mov eax, dword [0x536edc]
test eax, eax
je 0x421120
ret
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [0x536edc], 1
call fcn.00477a40
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x1e]
and eax, 0xfffffff0
call fcn.00477858
mov dword [0x536ee0], 0
sub esp, eax
lea eax, [esp + 0x1f]
and eax, 0xfffffff0
mov dword [0x536ee4], eax
mov eax, 0x52e8b4
sub eax, 0x52e8b4
cmp eax, 7
jle 0x421212
cmp eax, 0xb
jle 0x4212b0
mov esi, dword [0x52e8b4]
test esi, esi
jne 0x421220
mov ebx, dword [0x52e8b8]
test ebx, ebx
jne 0x421220
mov ecx, dword [0x52e8bc]
mov ebx, 0x52e8c0
test ecx, ecx
je 0x4212b5
mov ebx, 0x52e8b4
mov eax, dword [ebx + 8]
cmp eax, 1
jne 0x421359
add ebx, 0xc
cmp ebx, 0x52e8b4
jae 0x421212
mov ecx, dword [ebx]
movzx edx, byte [ebx + 8]
mov eax, dword [ebx + 4]
lea edi, [ecx + sym.fastboot.exe_Ordinal_0]
cmp edx, 0x10
mov dword [ebp - 0x2c], edi
lea esi, [eax + sym.fastboot.exe_Ordinal_0]
mov edi, dword [ecx + sym.fastboot.exe_Ordinal_0]
je 0x4212d0
cmp edx, 0x20
je 0x421346
cmp edx, 8
je 0x42131c
mov dword [esp + 4], edx
mov dword [esp], str.__Unknown_pseudo_relocation_bit_size__d._n
call fcn.00420f60
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 0x52e8b4
cmp ebx, 0x52e8b4
jae 0x421212
lea esi, [esi]
mov esi, dword [ebx + 4]
add ebx, 8
mov edx, dword [esi + sym.fastboot.exe_Ordinal_0]
lea eax, [esi + sym.fastboot.exe_Ordinal_0]
add edx, dword [ebx - 8]
mov dword [ebp - 0x1c], edx
call 0x420fc0
mov eax, dword [ebp - 0x1c]
cmp ebx, 0x52e8b4
mov dword [esi + sym.fastboot.exe_Ordinal_0], eax
jb 0x421230
mov eax, dword [0x536ee0]
xor ebx, ebx
lea edi, [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jg 0x42127f
jmp 0x421212
add ebx, 1
cmp ebx, dword [0x536ee0]
jge 0x421212
mov eax, dword [0x536ee4]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [eax]
test edx, edx
je 0x421274
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov edx, dword [eax + 8]
mov dword [esp + 4], edx
mov eax, dword [eax + 4]
mov dword [esp], eax
call esi
sub esp, 0x10
jmp 0x421274
mov ebx, 0x52e8b4
mov edx, dword [ebx]
test edx, edx
jne 0x421225
mov eax, dword [ebx + 4]
test eax, eax
je 0x4211b2
jmp 0x421225
movzx eax, word [eax + sym.fastboot.exe_Ordinal_0]
movzx edx, ax
mov word [ebp - 0x2c], ax
mov eax, edx
or eax, 0xffff0000
cmp word [ebp - 0x2c], 0
cmovs edx, eax
mov eax, esi
sub edx, ecx
sub edx, sym.fastboot.exe_Ordinal_0
add edx, edi
mov dword [ebp - 0x1c], edx
call 0x420fc0
movzx eax, word [ebp - 0x1c]
mov word [esi], ax
add ebx, 0xc
cmp ebx, 0x52e8b4
jb 0x4211c9
jmp 0x42125e
movzx eax, byte [esi]
movzx edx, al
mov ecx, edx
or ecx, 0xffffff00
test al, al
cmovs edx, ecx
mov eax, esi
sub edx, dword [ebp - 0x2c]
add edx, edi
mov dword [ebp - 0x1c], edx
call 0x420fc0
movzx eax, byte [ebp - 0x1c]
mov byte [esi], al
jmp 0x421308
sub edi, dword [ebp - 0x2c]
mov eax, esi
add edi, dword [esi]
mov dword [ebp - 0x1c], edi
call 0x420fc0
mov dword [esi], edi
jmp 0x421308
mov dword [esp + 4], eax
mov dword [esp], str.__Unknown_pseudo_relocation_protocol_version__d._n
call fcn.00420f60
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov eax, dword [eax]
cmp eax, 0xc0000091
ja 0x4213c8
cmp eax, 0xc000008d
jae 0x421430
cmp eax, 0xc0000005
jne 0x421437
mov dword [esp + 4], 0
mov dword [esp], 0xb
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
cmp eax, 1
je 0x421466
test eax, eax
je 0x4213dd
mov dword [esp], 0xb
call eax
jmp 0x42141d
cmp eax, 0xc0000094
je 0x4213f1
cmp eax, 0xc0000096
je 0x42143e
cmp eax, 0xc0000093
je 0x421430
mov eax, dword [0x536eec]
test eax, eax
je 0x421422
mov dword [ebp + 8], ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp eax
xor esi, esi
mov dword [esp + 4], 0
mov dword [esp], 8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
cmp eax, 1
je 0x421496
test eax, eax
je 0x4213dd
mov dword [esp], 8
call eax
mov eax, 0xffffffff
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
mov esi, 1
jmp 0x4213f3
cmp eax, 0xc000001d
jne 0x4213dd
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
cmp eax, 1
je 0x421480
test eax, eax
je 0x4213dd
mov dword [esp], 4
call eax
jmp 0x42141d
mov dword [esp + 4], 1
mov dword [esp], 0xb
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
jmp 0x42141d
mov dword [esp + 4], 1
mov dword [esp], 4
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
jmp 0x42141d
mov dword [esp + 4], 1
mov dword [esp], 8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
test esi, esi
je 0x42141d
call fcn.00420f30
jmp 0x42141d