Function at 0x40a5f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f964e
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x537474]
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 0x40ab4d
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 0x40a7b6
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 0x40a68e
xor ecx, ecx
jmp 0x40a6ad
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 0x40a6a0
sub ecx, dword [ebp - 0x94]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00405630
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmp eax, ebx
jae 0x40a719
cmp esi, eax
ja 0x40a719
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 0x40a702
push 1
lea ecx, [ebp - 0x8c]
call fcn.0040b230
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 0x40a714
push eax
mov ecx, ebx
call fcn.00404c10
mov edi, dword [ebp - 0x7c]
jmp 0x40a74f
cmp ebx, dword [ebp - 0x80]
jne 0x40a740
push 1
lea ecx, [ebp - 0x8c]
call fcn.0040b230
mov eax, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x80], eax
test ebx, ebx
je 0x40a74f
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00404c10
add ebx, 0x18
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], ebx
cmp eax, 0x10
jb 0x40a7a2
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x40a799
test cl, 0x1f
jne 0x40abbe
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40abbe
sub ecx, eax
cmp ecx, 4
jb 0x40abbe
cmp ecx, 0x23
ja 0x40abbe
mov ecx, eax
push ecx
call fcn.00471ca4
add esp, 4
inc edi
mov dword [ebp - 0x7c], edi
cmp edi, dword [ebp - 0x90]
jge 0x40a7b6
mov edx, dword [ebp - 0x78]
jmp 0x40a670
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 0x40a8ab
cmp dword [esi + 0x10], 0
mov byte [ebp - 0x74], 0x2d
jbe 0x40a841
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x40a7f0
mov ecx, dword [esi]
jmp 0x40a7f2
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [ebp - 0x78], eax
cmp edx, 0x10
jb 0x40a803
mov edi, dword [esi]
jmp 0x40a805
mov edi, esi
cmp edi, eax
jae 0x40a841
nop dword [eax]
movsx eax, byte [edi]
push 1
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0049d1c0
add esp, 0xc
test eax, eax
je 0x40a82e
inc edi
cmp edi, dword [ebp - 0x78]
jb 0x40a810
jmp 0x40a841
cmp dword [esi + 0x14], 0x10
jb 0x40a838
mov eax, dword [esi]
jmp 0x40a83a
mov eax, esi
sub edi, eax
cmp edi, 0xffffffff
jne 0x40a8ab
cmp dword [esi + 0x10], 3
jae 0x40a85a
push 0x53d080
call fcn.00409760
mov ecx, eax
call fcn.0040a280
jmp 0x40a8a4
sub esp, 8
lea ecx, [ebp - 0x148]
push 2
push str.flg.log
call fcn.0040af30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x13c], 6
jne 0x40a899
lea eax, [ebp - 0x148]
push eax
call fcn.00409760
mov ecx, eax
call fcn.0040a280
lea ecx, [ebp - 0x148]
call fcn.00405990
push 0
call fcn.004b48a1
xor edi, edi
cmp esi, ebx
mov dword [ebp - 0x7c], edi
sete al
test al, al
jne 0x40a8df
push 1
push edi
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0x2e
push eax
mov ecx, esi
call fcn.0040b350
cmp eax, 0xffffffff
jne 0x40a8df
mov edi, 1
mov byte [0x53d1bc], 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 0x40aaff
lea eax, [edi + edi*2]
lea edi, [esi + eax*8]
nop dword [eax]
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x40a92c
mov eax, dword [edi]
jmp 0x40a92e
mov eax, edi
cmp byte [eax], 0x2d
je 0x40a94e
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40aae3
push edi
mov ecx, eax
call fcn.0040ad00
jmp 0x40aae3
mov edx, dword [edi + 0x10]
mov byte [ebp - 0x74], 0x2d
mov dword [ebp - 0x78], edx
test edx, edx
je 0x40a9ac
cmp ecx, 0x10
jb 0x40a96b
mov eax, dword [edi]
mov dword [ebp - 0x90], eax
jmp 0x40a973
mov eax, edi
mov dword [ebp - 0x90], edi
add eax, edx
cmp ecx, 0x10
jb 0x40a97e
mov esi, dword [edi]
jmp 0x40a980
mov esi, edi
cmp esi, eax
jae 0x40a9ac
movsx eax, byte [esi]
push 1
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0049d1c0
add esp, 0xc
test eax, eax
je 0x40aa5e
mov eax, dword [ebp - 0x90]
inc esi
add eax, dword [ebp - 0x78]
cmp esi, eax
jb 0x40a984
or esi, 0xffffffff
push 1
push 0
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0x3d
push eax
mov ecx, edi
call fcn.00403610
mov dword [ebp - 0x78], eax
cmp eax, esi
jbe 0x40ab77
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 0x40aa76
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00403210
push eax
lea ecx, [ebp - 0x58]
call fcn.00403480
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40aa48
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40aa3f
test cl, 0x1f
jne 0x40abbe
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40abbe
sub ecx, eax
cmp ecx, 4
jb 0x40abbe
cmp ecx, 0x23
ja 0x40abbe
mov ecx, eax
push ecx
call fcn.00471ca4
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00409760
mov ecx, eax
call fcn.0040a0e0
jmp 0x40aacf
cmp dword [edi + 0x14], 0x10
jb 0x40aa6d
mov eax, dword [edi]
sub esi, eax
jmp 0x40a9af
mov eax, edi
sub esi, eax
jmp 0x40a9af
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00403210
push eax
lea ecx, [ebp - 0x58]
call fcn.00403480
lea ecx, [ebp - 0x40]
call fcn.00404f10
mov eax, dword [ebp - 0x78]
mov ecx, edi
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00403210
push eax
lea ecx, [ebp - 0x70]
call fcn.00403480
lea ecx, [ebp - 0x40]
call fcn.00404f10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00409760
mov ecx, eax
call fcn.00409fe0
lea ecx, [ebp - 0x28]
test al, al
je 0x40ab69
mov byte [ebp - 4], 4
call fcn.00404f10
mov eax, dword [ebp - 0x7c]
add edi, 0x18
inc eax
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0x94]
jb 0x40a920
mov esi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x70]
call fcn.00404f10
lea ecx, [ebp - 0x58]
call fcn.00404f10
test esi, esi
je 0x40ab4d
push dword [ebp - 0x98]
lea ecx, [ebp - 0x8c]
push ecx
push ebx
push esi
call fcn.0040ca40
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.0040b4a0
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.00497ebf
mov esp, ebp
pop ebp
ret
mov edx, edi
call fcn.00409d00
push 0
call fcn.004b48a1
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.00405630
mov edx, edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.00409d00
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40abf0
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40abe7
test cl, 0x1f
je 0x40abc3
call fcn.004a5de4
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40abcf
call fcn.004a5de4
sub ecx, eax
cmp ecx, 4
jae 0x40abdb
call fcn.004a5de4
cmp ecx, 0x23
jbe 0x40abe5
call fcn.004a5de4
mov ecx, eax
push ecx
call fcn.00471ca4
add esp, 4
push 0
call fcn.004b48a1
int3