Function at 0x404240
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd211
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x53806c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 1
jg 0x404278
mov al, 1
jmp 0x4046b3
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00403160
lea ecx, [ebp - 0x1c]
call fcn.004048f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 1
jmp 0x4042ac
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
cmp ecx, dword [ebp + 8]
jge 0x4042f3
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
lea ecx, [ebp - 0x154]
call fcn.00405640
mov byte [ebp - 4], 1
lea edx, [ebp - 0x154]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404d00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.004054e0
jmp 0x40429d
lea ecx, [ebp - 0x1c]
call fcn.00404c90
cmp eax, 1
jne 0x4043d4
push 0
push 0x2d
push 0
lea ecx, [ebp - 0x1c]
call fcn.00404c70
mov ecx, eax
call fcn.00405140
cmp eax, 0xffffffff
jne 0x4043d4
push 0
lea ecx, [ebp - 0x1c]
call fcn.00404c70
mov ecx, eax
call fcn.004052a0
cmp eax, 3
jae 0x40434b
push 0x53d8f0
call fcn.004032b0
mov ecx, eax
call fcn.00403e80
jmp 0x4043b3
push 0xb0
lea ecx, [ebp - 0x114]
call fcn.00403160
push 1
push 0x40
push 2
push str.flg.log
lea ecx, [ebp - 0x114]
call fcn.004057e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0x114]
call fcn.00402d20
movzx edx, al
test edx, edx
je 0x4043a4
lea eax, [ebp - 0x114]
push eax
call fcn.004032b0
mov ecx, eax
call fcn.00403e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.00403a30
mov byte [ebp - 0x119], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00404f30
mov al, byte [ebp - 0x119]
jmp 0x4046b3
mov dword [ebp - 0x130], 0
lea ecx, [ebp - 0x1c]
call fcn.00404cc0
movzx ecx, al
test ecx, ecx
jne 0x404419
push 0
push 0x2e
push 0
lea ecx, [ebp - 0x1c]
call fcn.00404c70
mov ecx, eax
call fcn.00405140
cmp eax, 0xffffffff
jne 0x404419
call fcn.004038f0
mov byte [eax], 1
mov dword [ebp - 0x130], 1
lea ecx, [ebp - 0x4c]
call fcn.004056b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.004056b0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x124], edx
jmp 0x40444e
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x1c]
call fcn.00404c90
cmp dword [ebp - 0x124], eax
jae 0x40467f
mov ecx, dword [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404c70
mov dword [ebp - 0x118], eax
push 0
mov ecx, dword [ebp - 0x118]
call fcn.00405310
movsx edx, byte [eax]
cmp edx, 0x2d
je 0x4044a3
cmp dword [ebp + 0x10], 0
je 0x4044a1
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00404e20
jmp 0x40443f
push 0
push 0x2d
mov ecx, dword [ebp - 0x118]
call fcn.00405140
mov dword [ebp - 0x128], eax
push 0
push 0x3d
mov ecx, dword [ebp - 0x118]
call fcn.004051b0
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
cmp ecx, dword [ebp - 0x128]
ja 0x40451f
push str.invalid_parameter
lea ecx, [ebp - 0x16c]
call fcn.00405640
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.00403900
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x16c]
call fcn.004054e0
push 0
call fcn.004d9a49
xor ecx, ecx
jne 0x4044db
lea ecx, [ebp - 0x34]
call fcn.004056b0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x12c], 0xffffffff
jne 0x4045ad
push 0xffffffffffffffff
mov edx, dword [ebp - 0x128]
push edx
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x118]
call fcn.004050f0
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00405530
lea ecx, [ebp - 0x184]
call fcn.004054e0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.004032b0
mov ecx, eax
call fcn.00403d10
movzx ecx, al
test ecx, ecx
jne 0x4045a8
mov edx, dword [ebp - 0x118]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00403900
add esp, 8
push 0
call fcn.004d9a49
xor ecx, ecx
jne 0x40458a
jmp 0x40466e
mov edx, dword [ebp - 0x12c]
sub edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, dword [ebp - 0x118]
call fcn.004050f0
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x138]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00405530
lea ecx, [ebp - 0x19c]
call fcn.004054e0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x12c]
add eax, 1
push eax
lea ecx, [ebp - 0x1b4]
push ecx
mov ecx, dword [ebp - 0x118]
call fcn.004050f0
mov dword [ebp - 0x13c], eax
mov edx, dword [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x64]
call fcn.00405530
lea ecx, [ebp - 0x1b4]
call fcn.004054e0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.004032b0
mov ecx, eax
call fcn.00403bd0
movzx eax, al
test eax, eax
jne 0x40466e
mov ecx, dword [ebp - 0x118]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00403900
add esp, 8
push 0
call fcn.004d9a49
xor eax, eax
jne 0x404650
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.004054e0
jmp 0x40443f
mov byte [ebp - 0x11a], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.004054e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.004054e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00404f30
mov al, byte [ebp - 0x11a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9f48
mov esp, ebp
pop ebp
ret