Function at 0x4044c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00405210
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00405210
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x458b7c]
test esi, esi
jle 0x4045c0
mov eax, dword [0x458b80]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4044f0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40456f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4044e0
mov dword [esp], ebx
call fcn.00404e30
mov edi, eax
test eax, eax
je 0x4045e7
mov eax, dword [0x458b80]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00404f40
mov edx, dword [0x458b80]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4045c7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x404568
sub eax, 4
and eax, 0xfffffffb
jne 0x404576
add dword [0x458b7c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x458b80]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
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 0x404568
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00404460
xor esi, esi
jmp 0x4044fa
mov eax, dword [0x458b80]
mov eax, dword [eax + ebx + 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.00404460
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00404460
lea esi, [esi]
nop
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x458b78]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x404620
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x458b78], 1
call fcn.00404eb0
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x1b]
shr eax, 4
shl eax, 4
call fcn.004050b0
mov dword [0x458b7c], 0
sub esp, eax
lea eax, [esp + 0x1f]
and eax, 0xfffffff0
mov dword [0x458b80], eax
mov eax, 0x4098cc
sub eax, 0x4098cc
cmp eax, 7
jle 0x404615
mov edx, dword [0x4098cc]
cmp eax, 0xb
jg 0x404710
mov ebx, 0x4098cc
test edx, edx
jne 0x404815
mov eax, dword [ebx + 4]
test eax, eax
jne 0x404815
mov eax, dword [ebx + 8]
cmp eax, 1
jne 0x404862
lea edi, [ebx + 0xc]
cmp edi, 0x4098cc
jb 0x4046cf
jmp 0x404615
sub eax, dword [ebp - 0x2c]
add eax, dword [ebx]
mov esi, eax
mov eax, ebx
call 0x4044c0
mov dword [ebx], esi
add edi, 0xc
cmp edi, 0x4098cc
jae 0x404780
mov eax, dword [edi]
mov ecx, dword [edi + 4]
movzx edx, byte [edi + 8]
lea esi, [eax + 0x400000]
lea ebx, [ecx + 0x400000]
mov eax, dword [eax + 0x400000]
mov dword [ebp - 0x2c], esi
cmp edx, 0x10
je 0x404740
cmp edx, 0x20
je 0x4046b0
cmp edx, 8
je 0x4047e0
mov dword [esp + 4], edx
mov dword [esp], str.__Unknown_pseudo_relocation_bit_size__d._n
call fcn.00404460
test edx, edx
jne 0x404810
mov eax, dword [0x4098d0]
mov edi, eax
or edi, dword [0x4098d4]
jne 0x404858
mov edx, dword [0x4098d8]
mov ebx, 0x4098d8
jmp 0x40467f
movzx esi, word [ecx + 0x400000]
mov dword [ebp - 0x30], ecx
mov ecx, esi
or ecx, 0xffff0000
test si, si
cmovs esi, ecx
sub esi, dword [ebp - 0x2c]
add edi, 0xc
add esi, eax
mov eax, ebx
call 0x4044c0
mov ecx, dword [ebp - 0x30]
mov word [ecx + 0x400000], si
cmp edi, 0x4098cc
jb 0x4046cf
lea esi, [esi]
mov eax, dword [0x458b7c]
test eax, eax
jle 0x404615
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x34]
lea esi, [ebp - 0x1c]
lea esi, [esi]
mov edx, dword [0x458b80]
lea eax, [edi + edi*4]
lea eax, [edx + eax*4]
mov edx, dword [eax]
test edx, edx
je 0x4047cc
mov dword [esp + 0xc], esi
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 ebx
sub esp, 0x10
add edi, 1
cmp edi, dword [0x458b7c]
jl 0x4047a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edx, byte [ebx]
mov esi, edx
or esi, 0xffffff00
test dl, dl
cmovs edx, esi
sub edx, dword [ebp - 0x2c]
lea esi, [edx + eax]
mov eax, ebx
call 0x4044c0
mov eax, esi
mov byte [ebx], al
jmp 0x4046c0
mov ebx, 0x4098cc
cmp ebx, 0x4098cc
jae 0x404615
lea esi, [esi]
mov esi, dword [ebx + 4]
mov edi, dword [ebx]
add ebx, 8
add edi, dword [esi + 0x400000]
lea eax, [esi + 0x400000]
call 0x4044c0
mov dword [esi + 0x400000], edi
cmp ebx, 0x4098cc
jb 0x404828
jmp 0x404780
mov ebx, 0x4098cc
jmp 0x40468a
mov dword [esp + 4], eax
mov dword [esp], str.__Unknown_pseudo_relocation_protocol_version__d._n
call fcn.00404460
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub esp, 0x3c
mov eax, dword [0x458b84]
fld qword [esp + 0x48]
fld qword [esp + 0x50]
fld qword [esp + 0x58]
test eax, eax
je 0x4048c8
fxch st(2)
mov edx, dword [esp + 0x40]
fstp qword [esp + 0x18]
fstp qword [esp + 0x20]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
fstp qword [esp + 0x28]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x10]
mov dword [esp], edx
call eax
jmp 0x4048ce
fstp st(0)
fstp st(0)
fstp st(0)
add esp, 0x3c
ret