Function at 0x40eb50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426205
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x433074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffc0c
mov dword [ebp - 0x10], ebx
js 0x40ed3e
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 0x34]
sub ecx, dword [eax + 0x30]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x40ed3e
mov dword [ebp - 4], 0
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x40ed52
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 1
push eax
lea ecx, [edi + 0x28]
call fcn.0040e320
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0xb0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x1c]
or ebx, 0xffffffff
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jge 0x40ec45
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040e960
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0040c300
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ec45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
mov byte [edi + 0x79], 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x10]
mov eax, dword [edi + 0x24]
lea ecx, [edx*8]
mov eax, dword [eax + 0x30]
sub ecx, edx
push dword [eax + ecx*4 + 0x18]
lea esi, [eax + ecx*4]
push dword [esi + 0x14]
push dword [ebp + 0xc]
push dword [esi]
call fcn.00413510
add esp, 0x10
test al, al
jne 0x40ed1b
lea ecx, [ebp - 0x18]
call fcn.00402d70
push 0xed
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00404ff0
lea ecx, [ebp - 0x10]
call fcn.00402d70
push 0xef
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00404ff0
push 1
push 0x427714
lea ecx, [ebp - 0x10]
call fcn.004033f0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.004033f0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
push 0x10
push edi
push esi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ed01
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40ed18
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40ed3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00402060
int3