Function at 0x40a390
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f242e
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x52d474]
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 - 0x78], edx
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
cmp ecx, 1
jle 0x40a8ed
xor eax, eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], eax
mov edi, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x7c], edi
cmp ecx, edi
jle 0x40a556
nop word [eax + eax]
mov edx, dword [edx + edi*4]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x40a42e
xor ecx, ecx
jmp 0x40a44d
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x94], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a440
sub ecx, dword [ebp - 0x94]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00405370
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmp eax, ebx
jae 0x40a4b9
cmp esi, eax
ja 0x40a4b9
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [ebp - 0x80]
jne 0x40a4a2
push 1
lea ecx, [ebp - 0x8c]
call fcn.0040af90
mov eax, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x80], eax
lea eax, [edi + edi*2]
lea eax, [esi + eax*8]
test ebx, ebx
je 0x40a4b4
push eax
mov ecx, ebx
call fcn.00404910
mov edi, dword [ebp - 0x7c]
jmp 0x40a4ef
cmp ebx, dword [ebp - 0x80]
jne 0x40a4e0
push 1
lea ecx, [ebp - 0x8c]
call fcn.0040af90
mov eax, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x80], eax
test ebx, ebx
je 0x40a4ef
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00404910
add ebx, 0x18
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], ebx
cmp eax, 0x10
jb 0x40a542
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x40a539
test cl, 0x1f
jne 0x40a95e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40a95e
sub ecx, eax
cmp ecx, 4
jb 0x40a95e
cmp ecx, 0x23
ja 0x40a95e
mov ecx, eax
push ecx
call fcn.0046df4e
add esp, 4
inc edi
mov dword [ebp - 0x7c], edi
cmp edi, dword [ebp - 0x90]
jge 0x40a556
mov edx, dword [ebp - 0x78]
jmp 0x40a410
mov ecx, ebx
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x94], eax
cmp eax, 1
jne 0x40a64b
cmp dword [esi + 0x10], 0
mov byte [ebp - 0x74], 0x2d
jbe 0x40a5e1
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x40a590
mov ecx, dword [esi]
jmp 0x40a592
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [ebp - 0x78], eax
cmp edx, 0x10
jb 0x40a5a3
mov edi, dword [esi]
jmp 0x40a5a5
mov edi, esi
cmp edi, eax
jae 0x40a5e1
nop dword [eax]
movsx eax, byte [edi]
push 1
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004933d0
add esp, 0xc
test eax, eax
je 0x40a5ce
inc edi
cmp edi, dword [ebp - 0x78]
jb 0x40a5b0
jmp 0x40a5e1
cmp dword [esi + 0x14], 0x10
jb 0x40a5d8
mov eax, dword [esi]
jmp 0x40a5da
mov eax, esi
sub edi, eax
cmp edi, 0xffffffff
jne 0x40a64b
cmp dword [esi + 0x10], 3
jae 0x40a5fa
push 0x533048
call fcn.00409500
mov ecx, eax
call fcn.0040a020
jmp 0x40a644
sub esp, 8
lea ecx, [ebp - 0x148]
push 2
push str.flg.log
call fcn.0040acd0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x13c], 6
jne 0x40a639
lea eax, [ebp - 0x148]
push eax
call fcn.00409500
mov ecx, eax
call fcn.0040a020
lea ecx, [ebp - 0x148]
call fcn.004056b0
push 0
call fcn.004aa68f
xor edi, edi
cmp esi, ebx
mov dword [ebp - 0x7c], edi
sete al
test al, al
jne 0x40a67f
push 1
push edi
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0x2e
push eax
mov ecx, esi
call fcn.0040b0b0
cmp eax, 0xffffffff
jne 0x40a67f
mov edi, 1
mov byte [0x53325c], 1
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 4
cmp edi, dword [ebp - 0x94]
jae 0x40a89f
lea eax, [edi + edi*2]
lea edi, [esi + eax*8]
nop dword [eax]
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x40a6cc
mov eax, dword [edi]
jmp 0x40a6ce
mov eax, edi
cmp byte [eax], 0x2d
je 0x40a6ee
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40a883
push edi
mov ecx, eax
call fcn.0040aaa0
jmp 0x40a883
mov edx, dword [edi + 0x10]
mov byte [ebp - 0x74], 0x2d
mov dword [ebp - 0x78], edx
test edx, edx
je 0x40a74c
cmp ecx, 0x10
jb 0x40a70b
mov eax, dword [edi]
mov dword [ebp - 0x90], eax
jmp 0x40a713
mov eax, edi
mov dword [ebp - 0x90], edi
add eax, edx
cmp ecx, 0x10
jb 0x40a71e
mov esi, dword [edi]
jmp 0x40a720
mov esi, edi
cmp esi, eax
jae 0x40a74c
movsx eax, byte [esi]
push 1
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004933d0
add esp, 0xc
test eax, eax
je 0x40a7fe
mov eax, dword [ebp - 0x90]
inc esi
add eax, dword [ebp - 0x78]
cmp esi, eax
jb 0x40a724
or esi, 0xffffffff
push 1
push 0
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0x3d
push eax
mov ecx, edi
call fcn.00403380
mov dword [ebp - 0x78], eax
cmp eax, esi
jbe 0x40a917
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 6
mov ecx, edi
cmp eax, 0xffffffff
jne 0x40a816
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00402e80
push eax
lea ecx, [ebp - 0x58]
call fcn.004030f0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40a7e8
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40a7df
test cl, 0x1f
jne 0x40a95e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40a95e
sub ecx, eax
cmp ecx, 4
jb 0x40a95e
cmp ecx, 0x23
ja 0x40a95e
mov ecx, eax
push ecx
call fcn.0046df4e
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00409500
mov ecx, eax
call fcn.00409e80
jmp 0x40a86f
cmp dword [edi + 0x14], 0x10
jb 0x40a80d
mov eax, dword [edi]
sub esi, eax
jmp 0x40a74f
mov eax, edi
sub esi, eax
jmp 0x40a74f
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00402e80
push eax
lea ecx, [ebp - 0x58]
call fcn.004030f0
lea ecx, [ebp - 0x40]
call fcn.00404c10
mov eax, dword [ebp - 0x78]
mov ecx, edi
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402e80
push eax
lea ecx, [ebp - 0x70]
call fcn.004030f0
lea ecx, [ebp - 0x40]
call fcn.00404c10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00409500
mov ecx, eax
call fcn.00409d80
lea ecx, [ebp - 0x28]
test al, al
je 0x40a909
mov byte [ebp - 4], 4
call fcn.00404c10
mov eax, dword [ebp - 0x7c]
add edi, 0x18
inc eax
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0x94]
jb 0x40a6c0
mov esi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x70]
call fcn.00404c10
lea ecx, [ebp - 0x58]
call fcn.00404c10
test esi, esi
je 0x40a8ed
push dword [ebp - 0x98]
lea ecx, [ebp - 0x8c]
push ecx
push ebx
push esi
call fcn.0040c730
mov ecx, dword [ebp - 0x80]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x8c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040b200
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.00491511
mov esp, ebp
pop ebp
ret
mov edx, edi
call fcn.00409aa0
push 0
call fcn.004aa68f
push 0x11
push str.invalid_parameter
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00405370
mov edx, edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.00409aa0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40a990
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40a987
test cl, 0x1f
je 0x40a963
call fcn.0049beb9
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40a96f
call fcn.0049beb9
sub ecx, eax
cmp ecx, 4
jae 0x40a97b
call fcn.0049beb9
cmp ecx, 0x23
jbe 0x40a985
call fcn.0049beb9
mov ecx, eax
push ecx
call fcn.0046df4e
add esp, 4
push 0
call fcn.004aa68f
int3