Function at 0x408440
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x470070]
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 dword [ebp - 0x128], edx
mov eax, ecx
mov dword [ebp - 0x11c], eax
cmp eax, 1
jle 0x408999
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor ecx, ecx
movq qword [ebp - 0x20], xmm0
xor edi, edi
mov dword [ebp - 0x120], ecx
xor esi, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
lea ebx, [edi + 1]
mov dword [ebp - 4], ecx
cmp eax, ebx
jle 0x4085b8
nop word [eax + eax]
mov edx, dword [edx + ebx*4]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x4084de
xor ecx, ecx
jmp 0x4084fd
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x124], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4084f0
sub ecx, dword [ebp - 0x124]
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.00405180
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
cmp eax, esi
jae 0x408557
cmp edi, eax
ja 0x408557
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp esi, dword [ebp - 0x120]
jne 0x408548
push ecx
lea ecx, [ebp - 0x20]
call fcn.00409e20
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x120], eax
lea eax, [edi + edi*2]
mov edi, dword [ebp - 0x20]
lea eax, [edi + eax*8]
test esi, esi
je 0x408586
jmp 0x40857e
cmp esi, dword [ebp - 0x120]
jne 0x408577
push ecx
lea ecx, [ebp - 0x20]
call fcn.00409e20
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x120], eax
test esi, esi
je 0x408586
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call fcn.00408c60
add esi, 0x18
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], esi
cmp eax, 0x10
jb 0x4085a5
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.004053b0
mov edx, dword [ebp - 0x128]
inc ebx
cmp ebx, dword [ebp - 0x11c]
jl 0x4084c0
mov ecx, esi
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x11c], eax
cmp eax, 1
jne 0x408670
sub esp, 8
mov byte [ebp - 0x14], 0x2d
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00409f40
cmp eax, 0xffffffff
jne 0x408670
cmp dword [edi + 0x10], 3
jae 0x40860c
push 0x472548
call fcn.00407620
mov ecx, eax
call fcn.004081b0
jmp 0x408669
push 0xb0
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00432580
add esp, 4
lea ecx, [ebp - 0x118]
push 2
push str.flg.log
call fcn.00408ce0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x10c], 6
jne 0x40865e
lea eax, [ebp - 0x118]
push eax
call fcn.00407620
mov ecx, eax
call fcn.004081b0
lea ecx, [ebp - 0x118]
call fcn.00407be0
push 0
call fcn.00439802
mov ebx, dword [ebp - 0x20]
xor edi, edi
cmp ebx, esi
mov dword [ebp - 0x124], edi
sete al
test al, al
jne 0x4086ad
sub esp, 8
mov byte [ebp - 0x14], 0x2e
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00409f40
cmp eax, 0xffffffff
jne 0x4086ad
mov edi, 1
mov byte [0x474acc], 1
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
mov byte [ebp - 4], 4
cmp edi, dword [ebp - 0x11c]
jae 0x408929
mov ecx, dword [ebp - 0x11c]
lea eax, [edi + edi*2]
lea edi, [ebx + eax*8]
nop dword [eax]
cmp dword [edi + 0x14], 0x10
jb 0x4086fa
mov eax, dword [edi]
jmp 0x4086fc
mov eax, edi
cmp byte [eax], 0x2d
jne 0x4088f9
sub esp, 8
mov byte [ebp - 0x14], 0x2d
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00409f40
sub esp, 8
mov byte [ebp - 0x14], 0x3d
mov ebx, eax
mov ecx, edi
lea eax, [ebp - 0x14]
push eax
call fcn.00409fb0
mov dword [ebp - 0x128], eax
cmp eax, ebx
jbe 0x4089c6
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
mov byte [ebp - 4], 6
mov ecx, edi
cmp eax, 0xffffffff
jne 0x4087dc
push eax
push ebx
lea eax, [ebp - 0x140]
push eax
call fcn.00408be0
mov ebx, eax
lea eax, [ebp - 0x38]
cmp eax, ebx
je 0x4087a1
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x408786
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.004053b0
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.0040a3d0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x12c]
cmp eax, 0x10
jb 0x4087c3
inc eax
lea ecx, [ebp - 0x140]
push eax
push dword [ebp - 0x140]
call fcn.004053b0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00407620
mov ecx, eax
call fcn.00408060
jmp 0x4088d2
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 0x140]
push eax
call fcn.00408be0
mov ebx, eax
lea eax, [ebp - 0x38]
cmp eax, ebx
je 0x408825
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x40880a
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.004053b0
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.0040a3d0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x12c]
cmp eax, 0x10
jb 0x408847
inc eax
lea ecx, [ebp - 0x140]
push eax
push dword [ebp - 0x140]
call fcn.004053b0
mov eax, dword [ebp - 0x128]
mov ecx, edi
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00408be0
mov ebx, eax
lea eax, [ebp - 0x68]
cmp eax, ebx
je 0x408898
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x40887d
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.004053b0
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
call fcn.0040a3d0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x12c]
cmp eax, 0x10
jb 0x4088ba
inc eax
lea ecx, [ebp - 0x140]
push eax
push dword [ebp - 0x140]
call fcn.004053b0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00407620
mov ecx, eax
call fcn.00407e20
test al, al
je 0x4089b5
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x4088f3
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.004053b0
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x124]
add edi, 0x18
inc eax
mov dword [ebp - 0x124], eax
cmp eax, ecx
jb 0x4086f0
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x408926
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.004053b0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
cmp eax, 0x10
jb 0x408950
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.004053b0
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
test ebx, ebx
je 0x408999
push dword [ebp - 0x128]
mov edx, esi
push ecx
mov ecx, ebx
call fcn.0040c700
mov ecx, dword [ebp - 0x120]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ebx
call fcn.0040aa20
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.004195c1
mov esp, ebp
pop ebp
ret
mov edx, edi
lea ecx, [ebp - 0x50]
call fcn.00407ae0
push 0
call fcn.00439802
push 0x11
push str.invalid_parameter
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x12c], 0xf
mov dword [ebp - 0x130], 0
mov byte [ebp - 0x140], 0
call fcn.00405180
mov edx, edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x140]
call fcn.00407ae0
mov eax, dword [ebp - 0x12c]
cmp eax, 0x10
jb 0x408a22
inc eax
lea ecx, [ebp - 0x140]
push eax
push dword [ebp - 0x140]
call fcn.004053b0
push 0
call fcn.00439802
int3