Function at 0x4786f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], 1
jne case.0x478927.8470
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
cmp esi, 0x110
jne 0x478747
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x10]
push pe_nt_image_headers32
call fcn.0048fa50
cmp dword [ebp - 4], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x478824
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x7b
jne 0x478775
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x10]
push esi
call fcn.0048f7c0
cmp dword [ebp - 4], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x478824
pop edi
lea eax, [esi - 0x7a]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x111
jne 0x4787f1
mov eax, dword [ebp + 0x10]
mov edx, 0x800d
movzx ecx, ax
shr eax, 0x10
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], eax
cmp dx, cx
jne 0x4787b9
lea ecx, [ebp - 4]
push ecx
push edi
push edx
push eax
mov ecx, ebx
call fcn.0048fd00
cmp dword [ebp - 4], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x478944
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edx, 0x8008
cmp dx, cx
jne 0x478824
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push edi
push edx
push eax
mov ecx, ebx
call fcn.00490230
cmp dword [ebp - 4], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x478824
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x4e
jne 0x478824
cmp dword [edi + 4], 0x5df
jne 0x478824
cmp dword [edi + 8], 0xffffff6a
jne 0x478824
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x10]
call fcn.0048f8f0
cmp dword [ebp - 4], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x478944
lea ecx, [ebx + 0x48]
cmp esi, 5
jne 0x47889a
xor eax, eax
test ecx, ecx
cmove ebx, eax
cmp byte [ecx + 0x1c], al
je 0x478868
push 0xe801
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jne 0x478859
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x478870
test ecx, ecx
jne 0x47886b
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x478870
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
je 0x4788b7
mov eax, edi
lea ecx, [ebx + 0x48]
shr eax, 0x10
cwde
push eax
movsx eax, di
push eax
call fcn.00465760
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0x24
jne 0x4788ce
cmp dword [ecx + 0x14], 0xffffffff
je 0x4788b7
cmp dword [ecx + 0x18], 0xffffffff
je 0x4788b7
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push edi
push dword [ebp + 0x10]
mov ecx, ebx
push esi
call fcn.00479900
cmp dword [ebp - 4], 0
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
jne 0x478944
cmp esi, 0x2111
ja 0x478913
je case.0x478927.8468
lea eax, [esi - 0x202b]
cmp eax, 0x23
ja case.0x478927.8470
movzx eax, byte [eax + 0x478968]
jmp dword [eax*4 + 0x478960]
lea eax, [esi - 0x2114]
cmp eax, 0xfc
ja case.0x478927.8470
movzx eax, byte [eax + 0x478994]
jmp dword [eax*4 + 0x47898c]
push edi
push dword [ebp + 0x10]
lea eax, [esi - 0x2000]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [ebx], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18