Function at 0x4049f9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
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
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x50], 0
push 4
mov eax, dword [ebp - 8]
add eax, 0x1a4
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00401e24
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x6c], 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 [0x409034]
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 4]
sub ecx, 0xafed872
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x60], 0
jne 0x404b25
cmp dword [ebp - 0x60], 0
je 0x404ace
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
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 + 0x1c0], eax
mov eax, dword [ebp - 4]
mov dword [0x409034], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x1c0], 0
jne 0x404b12
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x1c], 0x57
mov edx, dword [ebp - 0x28]
add edx, 0x456
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x1c0], 0
je 0x404b3e
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x200], 8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x214]
add eax, 0x100
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x214], eax
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1c0], 0
je 0x404e7c
cmp dword [ebp - 0x1c], 0x57
jne 0x404e7c
mov eax, dword [ebp - 8]
cmp dword [eax + 0x200], 8
jne 0x404b98
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x214]
mov dword [ebp - 0x70], edx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404ba5
mov eax, dword [ebp - 8]
mov dword [eax + 0x214], 0
mov ecx, dword [ebp - 8]
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ecx + 0x230], edx
mov eax, dword [0x409034]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 8]
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ecx + 0xd4], edx
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 4
mov eax, dword [ebp - 8]
cmp dword [eax + 0xd4], 0
jbe 0x404e5b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x200], 8
jne 0x404e5b
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x18], 0x434
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x80], 0x7b
mov eax, dword [ebp - 0x28]
add eax, 0xf4291
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x94], 0
mov dword [ebp - 0xa8], 0
jmp 0x404c4e
mov ecx, dword [ebp - 0xa8]
add ecx, 1
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
cmp edx, dword [0x409034]
jae 0x404c7c
mov eax, dword [ebp - 0x70]
add eax, dword [ebp - 0xa8]
xor ecx, ecx
mov cl, byte [eax]
sub ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x70]
add edx, dword [ebp - 0xa8]
mov byte [edx], cl
jmp 0x404c3f
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x409034]
jae 0x404e59
cmp dword [ebp - 0x80], 0x7b
jne 0x404e59
mov dword [ebp - 0xa8], 0
jmp 0x404cc0
mov ecx, dword [ebp - 0xa8]
add ecx, 1
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0xa8], 4
jae 0x404d9b
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x409034]
jae 0x404d9b
mov byte [ebp - 0xb0], 0
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xa0], edx
push 1
mov eax, dword [ebp - 0x70]
add eax, dword [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00401e24
add esp, 0xc
mov edx, dword [ebp - 0xa8]
mov al, byte [ebp + edx - 0x28]
mov byte [ebp - 0xb8], al
mov cl, byte [ebp - 0xb8]
push ecx
mov cl, byte [ebp - 0xb0]
pop bx
xor cl, bl
mov byte [ebp - 0x88], cl
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x98], ecx
lea edx, [ebp - 0xb0]
mov dword [ebp - 0xac], edx
lea eax, [ebp - 0x84]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dl, byte [ebp - 0x88]
mov byte [ecx], dl
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c0]
mov dword [ebp - 0xbc], ecx
push 1
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xbc]
add eax, dword [ebp - 0x24]
push eax
call fcn.00401e24
add esp, 0xc
jmp 0x404ca8
cmp dword [ebp - 0x24], 0
jbe 0x404e4d
mov dword [ebp - 0xa8], 0
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xa8]
mov dl, byte [ecx + 0x7c]
mov byte [ebp - 0x94], dl
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0x70]
add ecx, dword [ebp - 0xc4]
mov dl, byte [ecx]
mov byte [ebp - 0x7c], dl
lea eax, [ebp - 0x7c]
mov dword [ebp - 0xc0], eax
mov ah, byte [ebp - 0x7c]
mov al, byte [ebp - 0x94]
xor ah, al
mov byte [ebp - 0x7c], ah
mov ecx, dword [ebp - 0xa8]
add ecx, 3
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c0]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc0]
mov dl, byte [edx]
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x24]
add eax, 3
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xa8]
sub ecx, 2
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0x24]
sub edx, 2
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xa8]
cmp eax, dword [ebp - 0x74]
jae 0x404e4d
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x50]
jb 0x404daf
mov dword [ebp - 0x64], 1
jmp 0x404c83
jmp 0x404e64
mov edx, dword [ebp - 8]
push edx
call fcn.00401e58
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c0]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x1fc], eax
cmp dword [ebp - 0x64], 0
jne 0x404e89
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret