Function at 0x413781
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
lea edi, [ebx + 0x5c]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ecx, 0xbc
cdq
idiv ecx
test eax, eax
jne 0x4137a5
xor al, al
jmp 0x4139da
push 0
push ebx
call fcn.0040a74a
lea esi, [ebp - 0x14]
call fcn.0040ab23
jmp 0x4137cf
push 0
lea esi, [ebp - 0x14]
call fcn.0040ab3f
add eax, 4
push eax
call fcn.00408c8f
call fcn.0040ab67
lea esi, [ebp - 0xc]
lea edi, [ebx + 0x5c]
call fcn.00406a70
mov edi, eax
lea esi, [ebp - 0x14]
call fcn.0041b99e
test al, al
je 0x4137b7
lea eax, [ebx + 0x10c]
cmp byte [eax], 0
je 0x4138a0
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
mov byte [eax], 0
mov eax, dword [ebx + 8]
push 0x15
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov eax, dword [ebx + 8]
push 0
push 0xf
push eax
call esi
push eax
call edi
mov eax, dword [ebx + 8]
push 0
push 0xe
push eax
call esi
push eax
call edi
mov eax, dword [ebx + 8]
push 5
push 0x1f6
push eax
call esi
push eax
call edi
mov eax, dword [ebx + 8]
push 5
push 0x1f7
push eax
call esi
push eax
call edi
mov ecx, dword [ebx + 0xcc]
mov eax, dword [ecx + 0x108]
mov edi, dword [ebx + 8]
cdq
push 1
push dword [ebx + 0xa4]
sub eax, edx
push dword [ebx + 0xa0]
sar eax, 1
add eax, dword [ebx + 0x8c]
push eax
mov eax, dword [ecx + 0x104]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebx + 0x88]
push eax
push 0x1f5
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
mov eax, ebx
call fcn.004136fa
lea eax, [ebx + 0x104]
mov ecx, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
lea esi, [ebp - 0xc]
lea edi, [ebx + 0x5c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call fcn.00406a70
mov edx, dword [eax]
lea ecx, [ebx + 0xfc]
mov dword [ecx], edx
mov eax, dword [eax + 4]
and dword [ebp - 8], 0
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc4], 0
jle 0x4139ca
lea esi, [ebp - 0x1c]
lea edi, [ebx + 0x5c]
call fcn.00406a70
mov esi, dword [ebp - 4]
mov edi, eax
call fcn.0041b99e
test al, al
jne 0x4139ca
call fcn.0040ab3f
mov eax, dword [eax + 0xb8]
cmp byte [eax + 0x2a0], 0
jne 0x4139ad
lea esi, [ebp - 0x24]
lea edi, [ebx + 0x5c]
call fcn.00406a70
mov edi, eax
lea esi, [ebx + 0xfc]
call fcn.0041b99e
mov esi, dword [ebp - 4]
test al, al
je 0x41397a
mov ecx, dword [esi]
lea eax, [ebx + 0xfc]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
call fcn.0040ab3f
mov eax, dword [eax + 0xb8]
cmp byte [eax + 0x140], 0
je 0x41397a
call fcn.0040ab3f
mov edx, eax
add edx, 4
mov ecx, ebx
call fcn.00412f89
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
call fcn.0040ab3f
mov eax, dword [eax + 0xb8]
cmp byte [eax + 0x140], 0
jne 0x4139cd
call fcn.0040ab3f
mov edx, eax
add edx, 4
mov ecx, ebx
call fcn.00412f89
mov eax, dword [esi]
inc dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 4]
call fcn.0040ab67
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc4]
jl 0x4138e6
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov al, 1
pop edi
pop esi
leave
ret