Function at 0x40442c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x4c]
mov dword [edx], 0xddaf831e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 4
mov eax, dword [ebp - 8]
add eax, 0x118
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040512a
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x40
mov edx, dword [ebp - 0x28]
add edx, 0x15
mov dword [ebp - 0x28], edx
mov eax, dword [0x40e03c]
mov dword [ebp - 4], eax
push 0x8002
push 0x3e8
mov ecx, dword [ebp - 0x68]
add ecx, 0x4300
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 4]
sub edx, 0xafed872
mov dword [ebp - 4], edx
cmp dword [ebp - 0x60], 0
jne 0x404578
mov dword [ebp - 0x5c], 0x40
mov eax, dword [ebp - 0x5c]
push eax
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 8]
mov dword [edx + 0x98], eax
mov eax, dword [ebp - 4]
mov dword [0x40e03c], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x98], 0
jne 0x404563
push 0x8000
push 0
mov edx, dword [ebp - 8]
xor eax, eax
cmp dword [edx + 0x98], 0
sete al
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x1c], 0x57
mov ecx, dword [ebp - 0x28]
add ecx, 0x456
mov dword [ebp - 0x28], ecx
jmp 0x404598
push 0x3e8
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov byte [edx], 1
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x98], 0
je 0x4045b7
mov edx, dword [ebp - 8]
mov dword [edx + 0x1fc], 8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
add ecx, 0x13
mov edx, dword [ebp - 8]
mov dword [edx + 0x210], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x98], 0
je 0x40487c
cmp dword [ebp - 0x1c], 0x57
jne 0x40487c
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x1fc], 8
jne 0x404600
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 0x6c], eax
jmp 0x40460d
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x210], 0
push 0x140
push 0
lea edx, [ebp - 0x1b0]
push edx
call fcn.004058e0
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [eax + 0x22c], ecx
mov edx, dword [0x40e03c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 8]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [eax + 0x1c8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1c8], 0
jbe 0x40485b
mov eax, dword [ebp - 8]
cmp dword [eax + 0x1fc], 8
jne 0x40485b
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1bc], 4
mov dword [ebp - 0x1d8], 1
mov dword [ebp - 0x18], 0x434
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b8], 0x7b
mov ecx, dword [ebp - 0x28]
add ecx, 0xf4291
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x1c8], 0
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x24]
cmp edx, dword [0x40e03c]
jae 0x404859
cmp dword [ebp - 0x1b8], 0x7b
jne 0x404859
mov dword [ebp - 0x1e0], 0
jmp 0x404707
mov eax, dword [ebp - 0x1e0]
add eax, 1
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x1e0], 4
jae 0x4047af
mov edx, dword [ebp - 0x24]
cmp edx, dword [0x40e03c]
jae 0x4047af
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [ebp - 0x1e8], cl
mov edx, dword [ebp - 0x1e0]
mov al, byte [ebp + edx - 0x28]
mov byte [ebp - 0x1ec], al
mov al, byte [ebp - 0x1ec]
push eax
mov al, byte [ebp - 0x1e8]
pop bx
xor al, bl
mov byte [ebp - 0x1c0], al
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 0x1cc], ecx
lea edx, [ebp - 0x1e8]
mov dword [ebp - 0x1dc], edx
lea eax, [ebp - 0x1e4]
mov dword [ebp - 0x1d4], eax
mov ecx, dword [ebp - 0x1d4]
mov dl, byte [ebp - 0x1c0]
mov byte [ecx], dl
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x98]
mov dword [ebp - 0x1f0], ecx
mov edx, dword [ebp - 0x1f0]
add edx, dword [ebp - 0x24]
mov al, byte [ebp - 0x1e4]
mov byte [edx], al
jmp 0x4046ef
cmp dword [ebp - 0x24], 0
jbe 0x40484d
mov dword [ebp - 0x1e0], 0
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x1e0]
mov dl, byte [ecx + 0x19c]
mov byte [ebp - 0x1c8], dl
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1f4], eax
mov ecx, dword [ebp - 0x6c]
add ecx, dword [ebp - 0x1f4]
mov dl, byte [ecx]
mov byte [ebp - 0x1e4], dl
mov ah, byte [ebp - 0x1e4]
mov al, byte [ebp - 0x1c8]
xor ah, al
mov byte [ebp - 0x1e4], ah
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x98]
mov edx, dword [ebp - 0x24]
mov al, byte [ebp - 0x1e4]
mov byte [ecx + edx], al
mov ecx, dword [ebp - 0x1e0]
add ecx, 1
mov dword [ebp - 0x1e0], ecx
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1e0]
cmp eax, dword [ebp - 0x1bc]
jae 0x40484d
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x50]
jb 0x4047c3
mov dword [ebp - 0x64], 1
jmp 0x4046c7
jmp 0x404864
mov edx, dword [ebp - 8]
push edx
call fcn.00401a42
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x98]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0xd4], eax
cmp dword [ebp - 0x64], 0
jne 0x404889
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret