Function at 0x40c250
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dede
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x5524b4]
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 0x40c7ad
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 0x40c416
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 0x40c2ee
xor ecx, ecx
jmp 0x40c30d
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 0x40c300
sub ecx, dword [ebp - 0x94]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00409450
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmp eax, ebx
jae 0x40c379
cmp esi, eax
ja 0x40c379
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 0x40c362
push 1
lea ecx, [ebp - 0x8c]
call fcn.0040d4a0
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 0x40c374
push eax
mov ecx, ebx
call fcn.004089f0
mov edi, dword [ebp - 0x7c]
jmp 0x40c3af
cmp ebx, dword [ebp - 0x80]
jne 0x40c3a0
push 1
lea ecx, [ebp - 0x8c]
call fcn.0040d4a0
mov eax, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x80], eax
test ebx, ebx
je 0x40c3af
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004089f0
add ebx, 0x18
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], ebx
cmp eax, 0x10
jb 0x40c402
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x40c3f9
test cl, 0x1f
jne 0x40c81e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40c81e
sub ecx, eax
cmp ecx, 4
jb 0x40c81e
cmp ecx, 0x23
ja 0x40c81e
mov ecx, eax
push ecx
call fcn.0048114c
add esp, 4
inc edi
mov dword [ebp - 0x7c], edi
cmp edi, dword [ebp - 0x90]
jge 0x40c416
mov edx, dword [ebp - 0x78]
jmp 0x40c2d0
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 0x40c50b
cmp dword [esi + 0x10], 0
mov byte [ebp - 0x74], 0x2d
jbe 0x40c4a1
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x40c450
mov ecx, dword [esi]
jmp 0x40c452
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [ebp - 0x78], eax
cmp edx, 0x10
jb 0x40c463
mov edi, dword [esi]
jmp 0x40c465
mov edi, esi
cmp edi, eax
jae 0x40c4a1
nop dword [eax]
movsx eax, byte [edi]
push 1
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004ab450
add esp, 0xc
test eax, eax
je 0x40c48e
inc edi
cmp edi, dword [ebp - 0x78]
jb 0x40c470
jmp 0x40c4a1
cmp dword [esi + 0x14], 0x10
jb 0x40c498
mov eax, dword [esi]
jmp 0x40c49a
mov eax, esi
sub edi, eax
cmp edi, 0xffffffff
jne 0x40c50b
cmp dword [esi + 0x10], 3
jae 0x40c4ba
push 0x5584e8
call fcn.0040b360
mov ecx, eax
call fcn.0040be60
jmp 0x40c504
sub esp, 8
lea ecx, [ebp - 0x148]
push 2
push str.flg.log
call fcn.0040d1e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x13c], 6
jne 0x40c4f9
lea eax, [ebp - 0x148]
push eax
call fcn.0040b360
mov ecx, eax
call fcn.0040be60
lea ecx, [ebp - 0x148]
call fcn.004096b0
push 0
call fcn.004c1ea6
xor edi, edi
cmp esi, ebx
mov dword [ebp - 0x7c], edi
sete al
test al, al
jne 0x40c53f
push 1
push edi
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0x2e
push eax
mov ecx, esi
call fcn.0040d5c0
cmp eax, 0xffffffff
jne 0x40c53f
mov edi, 1
mov byte [0x55870c], 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 0x40c75f
lea eax, [edi + edi*2]
lea edi, [esi + eax*8]
nop dword [eax]
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x40c58c
mov eax, dword [edi]
jmp 0x40c58e
mov eax, edi
cmp byte [eax], 0x2d
je 0x40c5ae
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40c743
push edi
mov ecx, eax
call fcn.0040cfd0
jmp 0x40c743
mov edx, dword [edi + 0x10]
mov byte [ebp - 0x74], 0x2d
mov dword [ebp - 0x78], edx
test edx, edx
je 0x40c60c
cmp ecx, 0x10
jb 0x40c5cb
mov eax, dword [edi]
mov dword [ebp - 0x90], eax
jmp 0x40c5d3
mov eax, edi
mov dword [ebp - 0x90], edi
add eax, edx
cmp ecx, 0x10
jb 0x40c5de
mov esi, dword [edi]
jmp 0x40c5e0
mov esi, edi
cmp esi, eax
jae 0x40c60c
movsx eax, byte [esi]
push 1
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004ab450
add esp, 0xc
test eax, eax
je 0x40c6be
mov eax, dword [ebp - 0x90]
inc esi
add eax, dword [ebp - 0x78]
cmp esi, eax
jb 0x40c5e4
or esi, 0xffffffff
push 1
push 0
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0x3d
push eax
mov ecx, edi
call fcn.00404b40
mov dword [ebp - 0x78], eax
cmp eax, esi
jbe 0x40c7d7
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 0x40c6d6
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00403570
push eax
lea ecx, [ebp - 0x58]
call fcn.004037e0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40c6a8
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40c69f
test cl, 0x1f
jne 0x40c81e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40c81e
sub ecx, eax
cmp ecx, 4
jb 0x40c81e
cmp ecx, 0x23
ja 0x40c81e
mov ecx, eax
push ecx
call fcn.0048114c
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040b360
mov ecx, eax
call fcn.0040bcc0
jmp 0x40c72f
cmp dword [edi + 0x14], 0x10
jb 0x40c6cd
mov eax, dword [edi]
sub esi, eax
jmp 0x40c60f
mov eax, edi
sub esi, eax
jmp 0x40c60f
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00403570
push eax
lea ecx, [ebp - 0x58]
call fcn.004037e0
lea ecx, [ebp - 0x40]
call fcn.00408cf0
mov eax, dword [ebp - 0x78]
mov ecx, edi
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00403570
push eax
lea ecx, [ebp - 0x70]
call fcn.004037e0
lea ecx, [ebp - 0x40]
call fcn.00408cf0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040b360
mov ecx, eax
call fcn.0040bbc0
lea ecx, [ebp - 0x28]
test al, al
je 0x40c7c9
mov byte [ebp - 4], 4
call fcn.00408cf0
mov eax, dword [ebp - 0x7c]
add edi, 0x18
inc eax
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0x94]
jb 0x40c580
mov esi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x70]
call fcn.00408cf0
lea ecx, [ebp - 0x58]
call fcn.00408cf0
test esi, esi
je 0x40c7ad
push dword [ebp - 0x98]
lea ecx, [ebp - 0x8c]
push ecx
push ebx
push esi
call fcn.0040e980
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.0040d710
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.004a4bd0
mov esp, ebp
pop ebp
ret
mov edx, edi
call fcn.0040b8e0
push 0
call fcn.004c1ea6
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.00409450
mov edx, edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.0040b8e0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40c850
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40c847
test cl, 0x1f
je 0x40c823
call fcn.004af061
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40c82f
call fcn.004af061
sub ecx, eax
cmp ecx, 4
jae 0x40c83b
call fcn.004af061
cmp ecx, 0x23
jbe 0x40c845
call fcn.004af061
mov ecx, eax
push ecx
call fcn.0048114c
add esp, 4
push 0
call fcn.004c1ea6
int3