Function at 0x40a5a0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x422900
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x430898]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
xor ebp, ebp
mov dword [edi + 0x48], ebp
mov eax, dword [0x431ec8]
mov edx, dword [eax + 0xc]
mov ecx, 0x431ec8
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], ebp
call dword [0x42426c]
cmp dword [esp + 0x18], ebp
mov ebx, eax
jle 0x40a7a7
lea esp, [esp]
mov edx, dword [ebx + ebp*4]
push edx
lea ecx, [esp + 0x18]
call fcn.00408db0
lea eax, [ebp + 1]
cmp eax, dword [esp + 0x18]
mov byte [esp + 0x30], 1
jge 0x40a776
mov eax, dword [esp + 0x14]
push str._product
push eax
mov dword [esp + 0x28], 2
call fcn.004143f6
add esp, 8
test eax, eax
jne 0x40a693
mov esi, dword [ebx + ebp*4 + 4]
test esi, esi
lea ecx, [edi + 0x40]
jne 0x40a668
push eax
push esi
call fcn.004080d0
add ebp, dword [esp + 0x20]
jmp 0x40a778
mov eax, esi
lea edi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40a670
sub eax, edi
mov edi, dword [esp + 0x1c]
sar eax, 1
push eax
push esi
call fcn.004080d0
add ebp, dword [esp + 0x20]
jmp 0x40a778
mov ecx, dword [esp + 0x14]
push str._icon
push ecx
call fcn.004143f6
add esp, 8
test eax, eax
jne 0x40a73c
mov edx, dword [ebx + ebp*4 + 4]
test edx, edx
lea esi, [edi + 0x44]
je 0x40a6d3
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a6c0
sub eax, edi
mov edi, dword [esp + 0x1c]
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.004080d0
mov edx, dword [esi]
mov edx, dword [edx - 0xc]
test edx, edx
je 0x40a770
lea eax, [edx - 1]
test eax, eax
jl 0x40a801
mov ecx, dword [esi]
cmp eax, dword [ecx - 0xc]
jg 0x40a801
movzx eax, word [ecx + eax*2]
cmp ax, 0x22
jne 0x40a714
add edx, 0xffffffff
push edx
mov ecx, esi
call fcn.0040a240
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x40a770
jl 0x40a801
movzx eax, word [eax]
cmp ax, 0x22
jne 0x40a770
push 1
push 0
mov ecx, esi
call fcn.00409f60
add ebp, dword [esp + 0x20]
jmp 0x40a778
mov ecx, dword [esp + 0x14]
push str._sleep
push ecx
call fcn.004143f6
add esp, 8
test eax, eax
jne 0x40a768
mov edx, dword [ebx + ebp*4 + 4]
push edx
call fcn.00414487
add esp, 4
add ebp, dword [esp + 0x20]
mov dword [edi + 0x48], eax
jmp 0x40a778
mov dword [esp + 0x20], 1
add ebp, dword [esp + 0x20]
jmp 0x40a778
mov ebp, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a79d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, dword [esp + 0x18]
jl 0x40a610
push ebx
call dword [0x424074]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
mov ecx, edi
call fcn.0040a440
mov bl, al
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a7e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
push 0x80070057
call fcn.00405150
int3