Function at 0x10045e63
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x10046151
mov eax, dword [edi]
mov esi, dword [eax + 0x170]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, edi
call esi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10046151
cmp dword [ebp + 8], 0
je 0x10045ebf
mov eax, dword [eax + 0xac]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10045ebf
mov eax, dword [eax]
push 0
mov esi, dword [eax + 0x5c]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, dword [ebp - 0x10]
call esi
mov eax, dword [edi + 0xb4]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10045f8f
lea eax, [edi + 0xb0]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.1002915e
mov esi, dword [eax]
mov dword [ebp - 8], esi
test esi, esi
je 0x10046151
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x14], eax
lea ecx, [eax - 0xe800]
cmp ecx, 0x1f
ja 0x10045f7c
lea ecx, [eax - 0xe800]
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
mov esi, dword [eax + 0x190]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0xc]
or ecx, dword [ebp - 4]
test eax, eax
mov eax, dword [ebp - 8]
cmove ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [eax]
mov esi, dword [eax + 0x198]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, dword [ebp - 8]
call esi
test eax, eax
je 0x10045f61
cmp dword [ebp - 0x14], 0xe81f
je 0x10045f7c
mov eax, dword [ebx + 8]
mov ecx, edi
and eax, dword [ebp - 0xc]
push 1
push eax
push dword [ebp - 8]
call fcn.10046c71
mov ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
jmp 0x10045f7f
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0x10], 0
lea eax, [edi + 0xb0]
jne 0x10045edb
cmp dword [ebp + 8], 0
mov dword [ebx + 8], ecx
je 0x1004605c
mov eax, dword [ebx + 0x10]
mov ecx, edi
push 0
mov dword [edi + 0xe0], eax
call fcn.10046db8
push dword [ebx]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x100], 1
jne 0x10045fdb
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetMenu]
jmp 0x10045fe1
mov eax, dword [edi + 0x104]
mov dword [ebx + 4], eax
test eax, eax
je 0x10046012
push 1
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi]
push 0
mov esi, dword [eax + 0x70]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, edi
call esi
and dword [edi + 0x118], 0xfffffffe
mov esi, dword [ebp - 0x14]
mov eax, dword [edi + 0x8c]
mov ecx, edi
mov dword [ebx + 0x14], eax
and dword [edi + 0x8c], 0
push 0x7915
call fcn.100442e2
mov eax, 0xe900
cmp dword [ebx], eax
je 0x10046043
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x10046055
push 0xea21
push 0xfffffffffffffff4
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop esi
pop ebx
leave
ret 8
and dword [edi + 0xe0], 0
push 0xea21
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x10], eax
mov esi, 0xe900
test eax, eax
je 0x100460a5
push esi
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x10046099
push 0xea21
push 0xfffffffffffffff4
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
push 0xfffffffffffffff4
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [ebx + 4], 0
je 0x100460df
push 1
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0x100]
cmp eax, 1
jne 0x100460d1
push dword [ebx + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetMenu]
jmp 0x100460df
cmp eax, 2
jne 0x100460df
mov eax, dword [ebx + 4]
mov dword [edi + 0x104], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xac]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10046103
mov eax, dword [eax]
push 1
mov esi, dword [eax + 0x5c]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [edi]
push 1
mov esi, dword [eax + 0x178]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, edi
call esi
cmp dword [ebx], 0xe900
je 0x1004612e
push dword [ebx]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x10046131
mov eax, dword [ebp - 0x10]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x14]
mov ecx, edi
push 1
mov dword [edi + 0x8c], eax
call fcn.10046db8
jmp 0x10046055
call fcn.1003decd
int3