Function at 0x404598
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x18
call fcn.00526a16
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.00526a16
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x54d460
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.00526a16
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.00526a16
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.0040495c
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40465a
mov eax, 0
jmp 0x4048e0
mov dword [ebp - 0x20], esp
push 0x50
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push eax
push 0x50
call fcn.00526a16
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 0x4046ee
push 0x56
push 0x4017a6b
push 6
call fcn.00526a28
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.005278a0
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 0x404756
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x404754
imul eax, dword [edi]
jmp 0x404749
mov ecx, eax
cmp ecx, 0xf
jle 0x404760
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.00526a1c
add esp, 4
lea eax, [ebp - 8]
push eax
call fcn.004049ef
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 0x4047b4
push 0x8e
push 0x4017a6b
push 6
call fcn.00526a28
add esp, 0xc
call fcn.00404a15
test eax, eax
je 0x4047e0
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
cmp dword [ebx], 0xe06d7363
jne 0x4047e0
mov eax, 0
jmp 0x4048e0
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.00404aa8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40481e
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00407876
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404846
push ebx
call fcn.00526a1c
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.0040871a
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.00408aa6
call fcn.00409543
call fcn.00409f60
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x4048a8
push 0
call fcn.00409ff3
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.00526a1c
add esp, 4
pop ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x404919
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404929
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404939
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404949
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8