Function at 0x40460c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
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
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x2c]
mov dword [edx], 0xddaf831e
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
push 4
mov eax, dword [ebp - 8]
add eax, 0x118
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004019ae
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x50], 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 - 0x40], 0
mov ecx, dword [ebp - 4]
sub ecx, 0xafed872
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x40], 0
jne 0x404728
mov dword [ebp - 0x3c], 0x40
cmp dword [ebp - 4], 0xa
jae 0x4046ef
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x3c]
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 + 0x1f4], eax
mov eax, dword [ebp - 4]
mov dword [0x409034], eax
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 + 0x1f4], 0
je 0x404741
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1d0], 8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1e4]
add eax, 0x100
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1e4], eax
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1f4], 0
je 0x404ae2
cmp dword [ebp - 0x1c], 0x57
jne 0x404ae2
mov eax, dword [ebp - 8]
cmp dword [eax + 0x1d0], 8
jne 0x40479b
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1e4]
mov dword [ebp - 0x4c], edx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4047a8
mov eax, dword [ebp - 8]
mov dword [eax + 0x1e4], 0
mov ecx, dword [ebp - 8]
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ecx + 0x214], edx
mov eax, dword [0x409034]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 8]
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ecx + 0x58], edx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 4
mov eax, dword [ebp - 8]
cmp dword [eax + 0x58], 0
jbe 0x404ac1
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x1d0], 8
jne 0x404ac1
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x18], 0x434
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x60], 0x7b
mov eax, dword [ebp - 0x28]
add eax, 0xf4291
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x74], 0
cmp dword [0x409034], 0x64
jae 0x404844
push 0
push 0
push str.NOT_SPASE
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 4
push 0x1000
mov ecx, dword [0x409034]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x90], eax
mov edx, dword [0x409034]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.00404ec0
add esp, 0xc
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x88], 0
jmp 0x40489e
mov eax, dword [ebp - 0x88]
add eax, 1
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [0x409034]
jae 0x4048ff
mov eax, dword [ebp - 0x88]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4048df
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x88]
xor eax, eax
mov al, byte [edx]
sub eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x88]
mov byte [ecx], al
jmp 0x4048fd
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x88]
xor eax, eax
mov al, byte [edx]
add eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x88]
mov byte [ecx], al
jmp 0x40488f
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x24]
cmp edx, dword [0x409034]
jae 0x404abf
cmp dword [ebp - 0x60], 0x7b
jne 0x404abf
mov dword [ebp - 0x88], 0
jmp 0x404943
mov eax, dword [ebp - 0x88]
add eax, 1
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x88], 4
jae 0x404a03
mov edx, dword [ebp - 0x24]
cmp edx, dword [0x409034]
jae 0x404a03
mov byte [ebp - 0x94], 0
lea eax, [ebp - 0x64]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x80], ecx
push 1
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x80]
push edx
lea eax, [ebp - 0x94]
push eax
call fcn.004019ae
mov ecx, dword [ebp - 0x88]
mov dl, byte [ebp + ecx - 0x28]
mov byte [ebp - 0x9c], dl
mov cl, byte [ebp - 0x9c]
push ecx
mov cl, byte [ebp - 0x94]
pop bx
xor cl, bl
mov byte [ebp - 0x68], cl
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x8c], ecx
lea edx, [ebp - 0x64]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x98]
mov cl, byte [ebp - 0x68]
mov byte [eax], cl
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1f4]
mov dword [ebp - 0xa0], eax
push 1
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0xa0]
add edx, dword [ebp - 0x24]
push edx
call fcn.004019ae
jmp 0x40492b
cmp dword [ebp - 0x24], 0
jbe 0x404ab3
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x88]
mov cl, byte [eax + 0x50]
mov byte [ebp - 0x74], cl
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0xa8]
mov cl, byte [eax]
mov byte [ebp - 0x5c], cl
lea edx, [ebp - 0x5c]
mov dword [ebp - 0xa4], edx
mov ah, byte [ebp - 0x5c]
mov al, byte [ebp - 0x74]
xor ah, al
mov byte [ebp - 0x5c], ah
mov eax, dword [ebp - 0x88]
add eax, 3
mov dword [ebp - 0x88], eax
push 1
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1f4]
add eax, dword [ebp - 0x24]
push eax
call fcn.004019ae
mov ecx, dword [ebp - 0x24]
add ecx, 3
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x88]
sub edx, 2
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x24]
sub eax, 2
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [ebp - 0x54]
jae 0x404ab3
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x38]
jb 0x404a17
mov dword [ebp - 0x44], 1
jmp 0x404906
jmp 0x404aca
mov eax, dword [ebp - 8]
push eax
call fcn.00401a02
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1f4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x1cc], ecx
cmp dword [ebp - 0x44], 0
jne 0x404aef
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4