Function at 0x4077c2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff1c
mov ecx, 0x60
mov edx, ecx
sub edx, ecx
inc edx
mov dword [ebp - 0xa4], edx
push ebx
mov ecx, edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x2c], ecx
push esi
lea ebx, [edx - 0x4c]
lea ecx, [edx + ecx*2 - 0x1b]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xac], ecx
push edi
xor edi, edi
lea ecx, [edi + ecx*4 + 0x52]
mov dword [ebp - 0xc8], ecx
or ecx, edi
add ecx, ecx
add ecx, ecx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x64], ecx
sub edx, edi
mov dword [ebp - 0x7c], edx
push 0x40
push 0x3000
push 0xd64e
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0xd0], 0x410f4e
mov edi, ebx
xor ebx, ebx
mov dword [ebp - 0xbc], ebx
and edi, ebx
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0xd8]
xor eax, eax
mov dword [ebp - 0x3c], edi
mov edx, eax
mov dword [ebp - 0x48], ebx
test edi, 0x50
je 0x407875
mov esi, dword [ebp - 0xac]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x7c]
xor esi, esi
mov dword [ebp - 0xb4], ecx
inc esi
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0x88], esi
mov eax, dword [ebp - 0xd0]
mov edx, dword [ebp - 0x58]
lea esi, [edx + 0xc6a4]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x94], esi
mov esi, dword [eax]
mov dword [ebp - 0x6c], edi
mov ecx, dword [eax + 4]
sub eax, esi
test eax, 0x67
je 0x4078cb
sub eax, ecx
mov edx, 0x40
and edx, edi
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x14], eax
or esi, esi
je 0x40792c
add edx, edi
add edx, edi
lea eax, [ebx + 0x6d4f]
mov dword [ebp - 0x28], edx
cmp edx, 0x2639
je 0x4078f9
and edx, ecx
mov eax, dword [ebp - 0xbc]
and edx, esi
sub edx, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x90], edx
repne movsb byte es:[edi], byte [esi]
sub ecx, eax
mov dword [ebp - 0x70], edi
mov eax, 0x41
xor edx, edx
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xd4], eax
dec edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], edx
add dword [ebp - 0xd0], 8
mov dword [ebp - 0x44], esi
jmp 0x40785a
mov esi, dword [ebp - 0x88]
lea ebx, [ecx + 0x3c]
cmp ebx, dword [ebp - 0x6c]
je 0x40796e
lea ecx, [edx + esi*2 - 0x25]
xor esi, esi
test ecx, 0
jne 0x40794e
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x30], ecx
or eax, edx
test eax, 7
jne 0x40796e
xor ebx, ebx
and eax, ebx
xor edx, edx
mov dword [ebp - 0x9c], esi
add edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc0], eax
mov ebx, dword [ebp - 0x28]
lea eax, [ebx + 0x15]
mov dword [ebp - 0x20], esi
cmp eax, 0x9cf5
je 0x4079b4
lea esi, [edx*4 + 0x831d]
mov edi, edx
cmp edi, 0x70
jne 0x4079b4
cmp edi, 0x32c2401
jne 0x4079b4
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0xb8], esi
and ecx, edx
sub ecx, ebx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x4c], eax
cmp edx, 0xffffffa1
je 0x4079c5
mov dword [ebp - 0x50], esi
pop edi
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx*2 + 0x7e]
mov dword [ebp - 0xc4], esi
pop esi
add ecx, edi
mov ebx, edx
xor edx, edx
mov dword [ebp - 0x98], edx
test esi, 0x71d4
jne 0x407a22
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xc], ecx
cmp ebx, 0x7277
jne 0x407a22
lea ecx, [eax*4 + 0xfd]
sub ebx, ecx
mov dword [ebp - 0x54], esi
cmp ebx, 0x6c
jne 0x407a22
mov dword [ebp - 0xa8], ebx
cmp edi, ecx
je 0x407a22
cmp edx, dword [ebp - 0x20]
je 0x407a22
mov dword [ebp - 0x84], edx
pop ebx
mov dword [ebp - 0xe4], ebx
mov esp, ebp
pop ebp
ret