Function at 0x45f470
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov dword [ebp - 8], 1
jne 0x45f5a8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], 1
cmp eax, 0x4e
jne 0x45f4cd
cmp dword [edi + 8], 0xffffff4f
jne 0x45f660
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004189a0
jmp 0x45f59c
cmp eax, 0x113
jne 0x45f4ee
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push edi
push ecx
push 0x113
mov ecx, esi
call fcn.00418f20
jmp 0x45f59c
cmp eax, 0x110
jne 0x45f50f
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push edi
push ecx
push pe_nt_image_headers32
mov ecx, esi
call fcn.004189d0
jmp 0x45f59c
cmp eax, 2
jne 0x45f528
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push edi
push ecx
push 2
mov ecx, esi
call fcn.00418960
jmp 0x45f59c
cmp eax, 0x111
jne 0x45f660
mov ecx, dword [ebp + 0x10]
movzx eax, cx
cmp word [ebp - 0xc], ax
mov edx, eax
mov dword [ebp - 0x10], edx
mov eax, ecx
jne 0x45f5bd
lea ecx, [ebp - 8]
shr eax, 0x10
push ecx
push edi
push 1
push eax
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.00418b70
cmp dword [ebp - 8], 0
mov dword [ebx], eax
jne 0x45f749
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
movzx eax, ax
mov dword [ebp - 0xc], 0x402
movzx eax, ax
movzx ecx, dx
cmp word [ebp - 0xc], dx
jne 0x45f5dd
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push edi
push 0x402
push eax
mov ecx, esi
call fcn.00418ec0
cmp dword [ebp - 8], 0
mov dword [ebx], eax
jne 0x45f749
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 0x401
shr eax, 0x10
cmp cx, dx
jne 0x45f570
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push edi
push 0x401
jmp 0x45f594
mov edx, ecx
mov dword [ebp - 0xc], 0x9c4c
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, eax
cmp word [ebp - 0xc], dx
jne 0x45f612
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push edi
push 0x9c4c
push eax
mov ecx, esi
call fcn.00418cb0
jmp 0x45f59c
mov edx, 0x404
cmp dx, word [ebp - 0x14]
jne 0x45f637
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push edi
push edx
push eax
mov ecx, esi
call fcn.004188d0
jmp 0x45f59c
mov eax, 2
cmp ax, word [ebp - 0x18]
jne 0x45f65d
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push edi
push 2
push ecx
mov ecx, esi
call fcn.00418950
jmp 0x45f59c
mov eax, dword [ebp + 0xc]
lea edx, [esi + 0x20]
cmp eax, 5
jne 0x45f722
xor eax, eax
test edx, edx
cmove esi, eax
cmp byte [edx + 0x1c], al
je 0x45f6f4
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x45f6f7
cmp ecx, 2
jne 0x45f6c1
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0x20]
call fcn.0043f1b0
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x18
test ecx, ecx
jne 0x45f6f7
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0x20]
call fcn.0043f1b0
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
je 0x45f743
lea ecx, [esi + 0x20]
call fcn.0043f1b0
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x24
jne 0x45f5a8
cmp dword [edx + 0x14], 0xffffffff
je 0x45f743
cmp dword [edx + 0x18], 0xffffffff
je 0x45f743
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], edx
mov dword [ebx], 0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x18