Function at 0x40a380
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2a2e
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x52e474]
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 0x40a8dd
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 0x40a546
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 0x40a41e
xor ecx, ecx
jmp 0x40a43d
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 0x40a430
sub ecx, dword [ebp - 0x94]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00405360
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmp eax, ebx
jae 0x40a4a9
cmp esi, eax
ja 0x40a4a9
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 0x40a492
push 1
lea ecx, [ebp - 0x8c]
call fcn.0040af80
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 0x40a4a4
push eax
mov ecx, ebx
call fcn.00404900
mov edi, dword [ebp - 0x7c]
jmp 0x40a4df
cmp ebx, dword [ebp - 0x80]
jne 0x40a4d0
push 1
lea ecx, [ebp - 0x8c]
call fcn.0040af80
mov eax, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x80], eax
test ebx, ebx
je 0x40a4df
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00404900
add ebx, 0x18
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], ebx
cmp eax, 0x10
jb 0x40a532
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x40a529
test cl, 0x1f
jne 0x40a94e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40a94e
sub ecx, eax
cmp ecx, 4
jb 0x40a94e
cmp ecx, 0x23
ja 0x40a94e
mov ecx, eax
push ecx
call fcn.00491936
add esp, 4
inc edi
mov dword [ebp - 0x7c], edi
cmp edi, dword [ebp - 0x90]
jge 0x40a546
mov edx, dword [ebp - 0x78]
jmp 0x40a400
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 0x40a63b
cmp dword [esi + 0x10], 0
mov byte [ebp - 0x74], 0x2d
jbe 0x40a5d1
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x40a580
mov ecx, dword [esi]
jmp 0x40a582
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [ebp - 0x78], eax
cmp edx, 0x10
jb 0x40a593
mov edi, dword [esi]
jmp 0x40a595
mov edi, esi
cmp edi, eax
jae 0x40a5d1
nop dword [eax]
movsx eax, byte [edi]
push 1
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00493a00
add esp, 0xc
test eax, eax
je 0x40a5be
inc edi
cmp edi, dword [ebp - 0x78]
jb 0x40a5a0
jmp 0x40a5d1
cmp dword [esi + 0x14], 0x10
jb 0x40a5c8
mov eax, dword [esi]
jmp 0x40a5ca
mov eax, esi
sub edi, eax
cmp edi, 0xffffffff
jne 0x40a63b
cmp dword [esi + 0x10], 3
jae 0x40a5ea
push 0x534048
call fcn.004094f0
mov ecx, eax
call fcn.0040a010
jmp 0x40a634
sub esp, 8
lea ecx, [ebp - 0x148]
push 2
push str.flg.log
call fcn.0040acc0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x13c], 6
jne 0x40a629
lea eax, [ebp - 0x148]
push eax
call fcn.004094f0
mov ecx, eax
call fcn.0040a010
lea ecx, [ebp - 0x148]
call fcn.004056a0
push 0
call fcn.004aac7c
xor edi, edi
cmp esi, ebx
mov dword [ebp - 0x7c], edi
sete al
test al, al
jne 0x40a66f
push 1
push edi
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0x2e
push eax
mov ecx, esi
call fcn.0040b0a0
cmp eax, 0xffffffff
jne 0x40a66f
mov edi, 1
mov byte [0x53425c], 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 0x40a88f
lea eax, [edi + edi*2]
lea edi, [esi + eax*8]
nop dword [eax]
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x40a6bc
mov eax, dword [edi]
jmp 0x40a6be
mov eax, edi
cmp byte [eax], 0x2d
je 0x40a6de
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40a873
push edi
mov ecx, eax
call fcn.0040aa90
jmp 0x40a873
mov edx, dword [edi + 0x10]
mov byte [ebp - 0x74], 0x2d
mov dword [ebp - 0x78], edx
test edx, edx
je 0x40a73c
cmp ecx, 0x10
jb 0x40a6fb
mov eax, dword [edi]
mov dword [ebp - 0x90], eax
jmp 0x40a703
mov eax, edi
mov dword [ebp - 0x90], edi
add eax, edx
cmp ecx, 0x10
jb 0x40a70e
mov esi, dword [edi]
jmp 0x40a710
mov esi, edi
cmp esi, eax
jae 0x40a73c
movsx eax, byte [esi]
push 1
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00493a00
add esp, 0xc
test eax, eax
je 0x40a7ee
mov eax, dword [ebp - 0x90]
inc esi
add eax, dword [ebp - 0x78]
cmp esi, eax
jb 0x40a714
or esi, 0xffffffff
push 1
push 0
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0x3d
push eax
mov ecx, edi
call fcn.00403370
mov dword [ebp - 0x78], eax
cmp eax, esi
jbe 0x40a907
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 0x40a806
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00402e70
push eax
lea ecx, [ebp - 0x58]
call fcn.004030e0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40a7d8
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40a7cf
test cl, 0x1f
jne 0x40a94e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40a94e
sub ecx, eax
cmp ecx, 4
jb 0x40a94e
cmp ecx, 0x23
ja 0x40a94e
mov ecx, eax
push ecx
call fcn.00491936
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004094f0
mov ecx, eax
call fcn.00409e70
jmp 0x40a85f
cmp dword [edi + 0x14], 0x10
jb 0x40a7fd
mov eax, dword [edi]
sub esi, eax
jmp 0x40a73f
mov eax, edi
sub esi, eax
jmp 0x40a73f
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00402e70
push eax
lea ecx, [ebp - 0x58]
call fcn.004030e0
lea ecx, [ebp - 0x40]
call fcn.00404c00
mov eax, dword [ebp - 0x78]
mov ecx, edi
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402e70
push eax
lea ecx, [ebp - 0x70]
call fcn.004030e0
lea ecx, [ebp - 0x40]
call fcn.00404c00
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004094f0
mov ecx, eax
call fcn.00409d70
lea ecx, [ebp - 0x28]
test al, al
je 0x40a8f9
mov byte [ebp - 4], 4
call fcn.00404c00
mov eax, dword [ebp - 0x7c]
add edi, 0x18
inc eax
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0x94]
jb 0x40a6b0
mov esi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x70]
call fcn.00404c00
lea ecx, [ebp - 0x58]
call fcn.00404c00
test esi, esi
je 0x40a8dd
push dword [ebp - 0x98]
lea ecx, [ebp - 0x8c]
push ecx
push ebx
push esi
call fcn.0040c720
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.0040b1f0
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.00491b3a
mov esp, ebp
pop ebp
ret
mov edx, edi
call fcn.00409a90
push 0
call fcn.004aac7c
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.00405360
mov edx, edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.00409a90
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40a980
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40a977
test cl, 0x1f
je 0x40a953
call fcn.0049c524
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40a95f
call fcn.0049c524
sub ecx, eax
cmp ecx, 4
jae 0x40a96b
call fcn.0049c524
cmp ecx, 0x23
jbe 0x40a975
call fcn.0049c524
mov ecx, eax
push ecx
call fcn.00491936
add esp, 4
push 0
call fcn.004aac7c
int3