Function at 0x401780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4588f7
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x47719c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xe0], eax
call fcn.004016f0
mov dword [ebp - 4], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov byte [ebp - 4], 1
lea edx, [ebp - 0xd0]
mov al, byte [0x46bc70]
mov ecx, 1
add edx, ecx
mov dword [ebp - 0xd0], 0
mov byte [ebp - 0xd0], al
mov eax, edx
mov dword [ebp - 0xc8], ecx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 0xc4], 0
sub eax, ecx
push dword [ebp - 0xc4]
push eax
call fcn.00402ae0
mov byte [ebp - 4], 2
sub esp, 8
mov esi, dword [ebp - 0xc8]
mov edi, esp
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf8], 0
cmp esi, 8
ja 0x40185f
lea eax, [ebp - 0xf8]
lea ecx, [ebp - 0xd0]
jmp 0x401874
push esi
call fcn.00435538
mov ecx, dword [ebp - 0xd0]
add esp, 4
mov dword [ebp - 0xf8], eax
push esi
push ecx
push eax
call fcn.00436d60
add esp, 0xc
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0xf0]
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xec], 0
cmp esi, 8
ja 0x4018ac
lea eax, [ebp - 0xec]
lea ecx, [ebp - 0xf8]
jmp 0x4018c1
push esi
call fcn.00435538
mov ecx, dword [ebp - 0xf8]
add esp, 4
mov dword [ebp - 0xec], eax
push esi
push ecx
push eax
call fcn.00436d60
add esp, 0xc
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0xe4]
mov dword [edi + 8], ebx
mov dword [edi], 0
cmp ebx, 8
ja 0x4018ee
mov eax, edi
lea ecx, [ebp - 0xec]
jmp 0x4018ff
push ebx
call fcn.00435538
mov ecx, dword [ebp - 0xec]
add esp, 4
mov dword [edi], eax
push dword [edi + 8]
push ecx
push eax
call fcn.00436d60
add esp, 0xc
mov dword [edi + 0xc], 1
cmp ebx, 8
jbe 0x40192b
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x40192b
push eax
call fcn.00435533
add esp, 4
mov byte [ebp - 4], 2
cmp esi, 8
jbe 0x401947
mov eax, dword [ebp - 0xf8]
test eax, eax
je 0x401947
push eax
call fcn.00435533
add esp, 4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xdc]
call fcn.00402010
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0xc8], 8
jbe 0x401978
mov eax, dword [ebp - 0xd0]
test eax, eax
je 0x401978
push eax
call fcn.00435533
add esp, 4
mov ecx, dword [ebp - 0xd8]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0xdc]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 4
jae 0x4019fa
lea ecx, [ebp - 0xdc]
call fcn.00401c30
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4019d9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4019cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b0e
push edx
push ecx
call fcn.004354f5
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004354c4
mov esp, ebp
pop ebp
ret
push ecx
push 0
lea ecx, [ebp - 0xdc]
call fcn.00401b70
mov ecx, eax
call fcn.00401580
add esp, 4
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc4]
lea ecx, [ebp - 0xfc]
push eax
call fcn.00401b40
push eax
lea ecx, [ebp - 0x104]
call fcn.00401ee0
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 5
call fcn.00401550
push 1
lea ecx, [ebp - 0xdc]
call fcn.00401b70
push eax
lea ecx, [ebp - 0x70]
call fcn.004034d0
push 2
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 6
call fcn.00401b70
push eax
lea ecx, [ebp - 0x40]
call fcn.004034d0
push 3
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 7
call fcn.00401b70
push eax
lea ecx, [ebp - 0x58]
call fcn.004034d0
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0xe0]
mov byte [ebp - 4], 8
cmp edi, 3
jl 0x401aac
push dword [esi + 8]
lea ecx, [ebp - 0x40]
call fcn.00401c00
cmp edi, 4
jl 0x401abc
push dword [esi + 0xc]
lea ecx, [ebp - 0x58]
call fcn.00401c00
lea ecx, [ebp - 0x40]
call fcn.004034c0
push eax
lea ecx, [ebp - 0x58]
call fcn.004034c0
push eax
lea ecx, [ebp - 0x70]
call fcn.004034c0
push eax
lea ecx, [ebp - 0xc0]
call fcn.004052c0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.004057f0
lea ecx, [ebp - 0xc0]
call fcn.004054d0
lea ecx, [ebp - 0xc0]
call fcn.00405660
push 0
call fcn.00441756
call fcn.004404ef
int3