Function at 0x402f61
Capabilities:
Terminate process

Disassembly:
push 0x130
mov eax, 0x51c49e
call fcn.004ac5bf
mov dword [ebp - 0x11c], edx
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x120], eax
cmp ebx, 1
jle 0x403258
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x18], eax
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], eax
xor esi, esi
inc esi
cmp ebx, esi
jle 0x402fe5
push dword [edx + esi*4]
lea ecx, [ebp - 0x38]
call fcn.00403a6c
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x20]
call fcn.00403840
push 0
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.004049c9
mov edx, dword [ebp - 0x11c]
inc esi
cmp esi, ebx
jl 0x402fa9
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
sub eax, edi
push 0x18
cdq
pop ecx
idiv ecx
mov esi, eax
mov dword [ebp - 0x124], esi
cmp esi, 1
jne 0x403090
push eax
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x2d
push eax
mov ecx, edi
call fcn.00404a6e
cmp eax, 0xffffffff
jne 0x403090
cmp dword [edi + 0x10], 3
jae 0x40302e
push 0x56e168
call fcn.00402613
mov ecx, eax
call fcn.00402cf2
jmp 0x403089
push 0xb0
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004e9750
pop ecx
push 2
push str.flg.log
lea ecx, [ebp - 0x118]
call fcn.00403b15
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x10c], 6
jne 0x40307e
lea eax, [ebp - 0x118]
push eax
call fcn.00402613
mov ecx, eax
call fcn.00402cf2
lea ecx, [ebp - 0x118]
call fcn.00402a0f
push 0
call fcn.004fa93c
xor ebx, ebx
cmp edi, dword [ebp - 0x1c]
sete al
test al, al
jne 0x4030bb
push 1
push ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x2e
push eax
mov ecx, edi
call fcn.00404a6e
cmp eax, 0xffffffff
jne 0x4030bb
mov byte [0x56fb80], 1
inc ebx
and dword [ebp - 0x40], 0
push 0xf
pop eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x50], 0
and dword [ebp - 0x58], 0
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x68], 0
mov byte [ebp - 4], 4
cmp ebx, esi
jae 0x403238
imul esi, ebx, 0x18
add esi, edi
cmp dword [esi + 0x14], 0x10
jb 0x4030ef
mov eax, dword [esi]
jmp 0x4030f1
mov eax, esi
cmp byte [eax], 0x2d
je 0x403111
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x403228
push esi
mov ecx, eax
call fcn.004037b2
jmp 0x403228
push 1
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x2d
push eax
mov ecx, esi
call fcn.00404a6e
push 1
mov dword [ebp - 0x11c], eax
mov ecx, esi
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x3d
push eax
call fcn.00404ad0
mov ecx, dword [ebp - 0x11c]
mov edi, eax
cmp edi, ecx
jbe 0x40326b
and dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov byte [ebp - 4], 6
cmp edi, 0xffffffff
jne 0x4031a4
push eax
push ecx
lea eax, [ebp - 0x13c]
mov ecx, esi
push eax
call fcn.00403921
push eax
lea ecx, [ebp - 0x50]
call fcn.004039f8
xor edi, edi
lea ecx, [ebp - 0x13c]
push edi
push 1
call fcn.004049c9
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00402613
mov ecx, eax
call fcn.00402c11
jmp 0x403215
mov eax, edi
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x13c]
mov ecx, esi
push eax
call fcn.00403921
push eax
lea ecx, [ebp - 0x50]
call fcn.004039f8
push 0
push 1
lea ecx, [ebp - 0x13c]
call fcn.004049c9
push 0xffffffffffffffff
lea eax, [edi + 1]
mov ecx, esi
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00403921
push eax
lea ecx, [ebp - 0x68]
call fcn.004039f8
xor edi, edi
lea ecx, [ebp - 0x13c]
push edi
push 1
call fcn.004049c9
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00402613
mov ecx, eax
call fcn.00402b30
lea ecx, [ebp - 0x38]
test al, al
je 0x40325e
push edi
push 1
mov byte [ebp - 4], 4
call fcn.004049c9
inc ebx
add esi, 0x18
cmp ebx, dword [ebp - 0x124]
jb 0x4030e5
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.004049c9
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.004049c9
lea ecx, [ebp - 0x20]
call fcn.00404924
call fcn.004ac569
ret
mov edx, esi
call fcn.0040294d
push edi
jmp 0x40308b
push str.invalid_parameter
lea ecx, [ebp - 0x13c]
call fcn.00403a6c
mov edx, esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x13c]
call fcn.0040294d
push 0
push 1
lea ecx, [ebp - 0x13c]
call fcn.004049c9
jmp 0x403089