Function at 0x420360
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430a26
mov eax, dword fs:[0]
push eax
sub esp, 0xb98
mov eax, dword [0x43c0d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x54], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x864], edi
jne 0x4203a5
mov al, 1
jmp 0x4207a9
xorps xmm0, xmm0
lea eax, [ebp - 0x85c]
movups xmmword [ebp - 0x30], xmm0
push 0x3fc
movups xmmword [ebp - 0x20], xmm0
push 0
movups xmm0, xmmword [edi]
push eax
movups xmmword [ebp - 0x50], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [ebp - 0x40], xmm0
call fcn.00424230
add esp, 0xc
lea ecx, [ebp - 0x85c]
call fcn.004055b0
push 1
push 1
lea eax, [esi + 0xc]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x85c]
call fcn.00406210
test al, al
je 0x420791
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x85c]
cdq
push edx
push eax
call fcn.00417a50
test al, al
je 0x420791
push 0x41
lea eax, [ebp - 0xa34]
push 0
push eax
call fcn.00424230
add esp, 0xc
lea ecx, [esi + 0x3c]
cmp dword [esi + 0x50], 0x10
jb 0x42043a
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0xa3c]
push eax
push ecx
lea ecx, [ebp - 0x85c]
call fcn.0041f7f0
test al, al
je 0x420791
push 0
push 1
push dword [ebp - 0x8dc]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push 4
push eax
lea ecx, [ebp - 0x85c]
call fcn.00419c90
test al, al
je 0x420791
push 0
push 1
push 0
push dword [ebp - 0x60]
lea ecx, [ebp - 0x85c]
call fcn.00419b30
push eax
push 0x20
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x85c]
call fcn.00419c90
test al, al
je 0x420791
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movq qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
push 0
push 1
mov ecx, esi
call fcn.0040ef50
test al, al
je 0x420789
push 0x3fc
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.00424230
add esp, 0xc
lea ecx, [ebp - 0x460]
call fcn.004055b0
push 0
push 0
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 2
call fcn.00406410
test al, al
jne 0x42052f
lea eax, [ebp - 0x5c]
push eax
push 0
jmp 0x420775
push 0x41
lea eax, [ebp - 0x8cc]
push 0
push eax
call fcn.00424230
add esp, 0xc
lea ecx, [esi + 0x3c]
cmp dword [esi + 0x50], 0x10
jb 0x42054e
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x8d4]
push eax
push ecx
lea ecx, [ebp - 0x460]
call fcn.0041f8a0
test al, al
je 0x420597
mov ecx, dword [ebp - 0x8e4]
mov eax, edi
sub eax, dword [esi + 8]
cmp ecx, eax
je 0x420597
mov eax, dword [esi + 0x58]
test eax, eax
je 0x42057e
mov byte [eax], 1
mov eax, dword [esi + 8]
lea edi, [esi + 0x3c]
add eax, ecx
lea ecx, [ebp - 0x460]
push 0
push eax
push edi
call fcn.00417ea0
jmp 0x42059a
lea edi, [esi + 0x3c]
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
push 0
push 0
call fcn.0040ef50
test al, al
je 0x42077e
lea ecx, [ebp - 0x460]
call fcn.00415990
lea ecx, [ebp - 0x5c]
call fcn.00405c40
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movq qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
push dword [esi + 8]
mov ecx, esi
push 1
call fcn.0040ef50
test al, al
je 0x420789
push 0x3fc
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.00424230
add esp, 0xc
lea ecx, [ebp - 0x460]
call fcn.004055b0
push 1
push 0
push dword [esi + 8]
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 4
push 0
call fcn.00417110
test al, al
je 0x42076e
push 0x41
lea eax, [ebp - 0xb9c]
push 0
push eax
call fcn.00424230
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x420662
mov eax, dword [edi]
lea ecx, [ebp - 0xba4]
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.0041f7f0
test al, al
je 0x42076e
push 0
push dword [ebp - 0xa44]
lea ecx, [ebp - 0x460]
call fcn.00419b30
mov ecx, dword [ebp - 0x8e4]
cmp ecx, dword [ebp - 0xa4c]
je 0x4206be
cmp byte [ebp - 0xb58], 0
jne 0x4206be
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4206b1
mov byte [eax], 1
push ecx
push edi
lea ecx, [ebp - 0x460]
call fcn.00417d40
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
push dword [esi + 8]
push 0
call fcn.0040ef50
test al, al
je 0x42077e
lea ecx, [ebp - 0x460]
call fcn.00415990
lea ecx, [ebp - 0x5c]
call fcn.00405c40
lea ecx, [ebp - 0x50]
mov edi, 0x1c
lea edx, [ebp - 0x30]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x42071b
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4206f4
mov eax, dword [esi + 0x58]
test eax, eax
je 0x42070f
mov byte [eax], 0
mov byte [ebp - 0x85d], 1
jmp 0x420798
mov eax, dword [esi + 0x58]
test eax, eax
je 0x420725
mov byte [eax], 1
mov edi, dword [ebp - 0x864]
lea eax, [ebp - 0x60]
push eax
push 0x40
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x420705
xor eax, eax
mov cl, byte [ebp + eax - 0x30]
cmp byte [ebp + eax - 0x50], cl
je 0x42074d
mov byte [edi + eax], cl
inc eax
cmp eax, 0x20
jb 0x420740
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x60]
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x85d]
jmp 0x420798
lea eax, [ebp - 0x5c]
push eax
push dword [esi + 8]
push 0
mov ecx, esi
call fcn.0040ef50
lea ecx, [ebp - 0x460]
call fcn.00415990
lea ecx, [ebp - 0x5c]
call fcn.00405c40
mov byte [ebp - 0x85d], 0
lea ecx, [ebp - 0x85c]
call fcn.00415990
mov al, byte [ebp - 0x85d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042264a
mov esp, ebp
pop ebp
ret 4