Function at 0x45a660
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 0
jne 0x45a67b
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 0x40]
test eax, eax
je 0x45a68b
push eax
call fcn.0046c650
add esp, 4
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x45a6a5
push 4
call fcn.0046d5d8
mov dword [edi + 0x40], eax
add esp, 4
mov dword [eax], esi
jmp 0x45a6f2
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45a6b0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 4]
push eax
call fcn.0046d5d8
mov ecx, esi
add esp, 4
mov dword [edi + 0x40], eax
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x45a6d4
sub ecx, ebx
sar ecx, 1
lea ecx, [ecx + ecx + 2]
push ecx
push esi
push eax
call fcn.0046ba50
add esp, 0xc
cmp dword [edi + 0x24], 0
lea esi, [edi + 0x24]
je 0x45a72f
push esi
lea edx, [ebp - 8]
push edx
mov ecx, 0x4adc94
call fcn.0044ed60
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push ecx
lea edx, [ebp + 8]
push edx
mov ecx, 0x4adc94
call fcn.00459200
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi], 0
mov ecx, dword [0x4adb9c]
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0x40]
push 0
push ecx
mov ecx, dword [0x4adbb0]
push 0
push ebx
push 0
push 0
push 0
push 0
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi], eax
test eax, eax
je 0x45a789
cmp dword [edi + 0x3c], 0
mov dword [edi + 0x28], ebx
lea ebx, [edi + 0x3c]
jne 0x45a7fe
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push ebx
push 0x4a06d0
push eax
call edx
test eax, eax
jns 0x45a797
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebx]
test ebx, ebx
je 0x45a7fe
lea ecx, [ebp + 0x14]
push ecx
mov dword [ebp + 0x14], 0
mov eax, dword [ebx]
mov edx, dword [eax]
push 0x4a0730
push ebx
call edx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x45a7fe
lea edx, [ebp + 8]
push edx
xor ebx, ebx
mov dword [ebp + 8], ebx
mov ecx, dword [eax]
push 0x4a06e0
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x45a7f3
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], ebx
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [edi + 0x40]
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45a806
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push edx
call fcn.00443ca0
mov ecx, dword [esi]
push 0
lea edx, [ebp - 8]
mov dword [ebp - 4], ecx
push edx
mov ecx, 0x4add80
mov dword [ebp - 8], eax
call fcn.00453800
push eax
lea eax, [ebp - 8]
push eax
mov ecx, 0x4add80
call fcn.00450cd0
mov ecx, dword [esi]
push 0
lea edx, [ebp - 8]
mov dword [ebp - 8], ecx
push edx
mov ecx, 0x4adc94
mov dword [ebp - 4], edi
call fcn.00453800
push eax
lea eax, [ebp - 8]
push eax
mov ecx, 0x4adc94
call fcn.00450cd0
mov ecx, dword [esi]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10