Function at 0x404389
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x18
call fcn.005080aa
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
add ebx, 0x14
push ebx
push 0x44
call fcn.005080aa
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x52b4d8
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0xf
rep stosd dword es:[edi], eax
push 0x2cc
call fcn.005080aa
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xb3
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 8
call fcn.005080aa
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.0040474d
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40444b
mov eax, 0
jmp 0x4046d1
mov dword [ebp - 0x20], esp
push 0x50
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push eax
push 0x50
call fcn.005080aa
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0xf
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop ebx
add ebx, 4
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4044df
push 0x56
push 0x40160f6
push 6
call fcn.005080bc
add esp, 0xc
mov ebx, dword [ebp - 0x24]
push ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 4
mov eax, 2
call fcn.005092b0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x404547
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x404545
imul eax, dword [edi]
jmp 0x40453a
mov ecx, eax
cmp ecx, 0xf
jle 0x404551
mov ecx, 0xf
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x3c
call fcn.005080b0
add esp, 4
lea eax, [ebp - 8]
push eax
call fcn.004047e0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0x2cc
push dword [ebp + 0xc]
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x4045a5
push 0x8e
push 0x40160f6
push 6
call fcn.005080bc
add esp, 0xc
call fcn.00404806
test eax, eax
je 0x4045d1
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
cmp dword [ebx], 0xe06d7363
jne 0x4045d1
mov eax, 0
jmp 0x4046d1
mov ebx, dword [ebp - 8]
add ebx, 0xb4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 8]
add ebx, 0xb8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
push dword [ebx]
mov ebx, dword [ebp - 0x20]
push dword [ebx]
call fcn.00404899
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40460f
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00407667
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404637
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040850b
mov ebx, dword [ebp - 0x1c]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408897
call fcn.00409334
call fcn.00409d51
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x404699
push 0
call fcn.00409de4
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0x14
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.005080b0
add esp, 4
pop ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40470a
push ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40471a
push ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40472a
push ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40473a
push ebx
call fcn.005080b0
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.005080b0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8