Function at 0x474c20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x474e70
mov edi, dword [ebp + 0xc]
mov edx, 1
mov ebx, dword [ebp + 0x14]
cmp edi, 0x110
jne 0x474c5f
mov eax, dword [esi + 0x18]
sub esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x20], edx
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
call fcn.00475910
jmp 0x474c7d
cmp edi, 0x4e
jne 0x474c9d
cmp dword [ebx + 8], 0xfffff441
jne 0x474d5e
mov eax, dword [esi + 0x18]
push ebx
mov dword [eax + 0x20], edx
call fcn.00475af0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x20], 0
je 0x474d5e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x111
jne 0x474d5e
mov ecx, dword [ebp + 0x10]
movzx eax, cx
mov ecx, 2
mov dword [ebp - 4], eax
cmp cx, ax
jne 0x474dbd
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], edx
mov eax, dword [esi + 0x110]
mov edi, dword [esi + 0x10c]
cmp edi, eax
je 0x474cf8
mov ebx, eax
lea ecx, [edi + 0x20]
call fcn.00408a80
lea ecx, [edi + 4]
call fcn.00408a80
add edi, 0x3c
cmp edi, ebx
jne 0x474cd8
mov edi, dword [esi + 0x10c]
mov ebx, dword [ebp + 0x14]
push 2
mov dword [esi + 0x110], edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x20], 0
jne 0x474e62
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov ecx, 0x139
cmp cx, ax
jne 0x474d5e
mov eax, dword [esi + 0x18]
push ecx
mov ecx, esi
mov dword [eax + 0x20], 1
mov eax, esp
sub esp, 8
mov dword [eax], ebx
call fcn.00475d90
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x20], 0
jne 0x474e62
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 1
push eax
push ebx
push dword [ebp + 0x10]
mov ecx, esi
push edi
call fcn.00419800
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x474e62
lea ecx, [esi + 0x20]
cmp edi, 5
jne 0x474e3c
xor eax, eax
test ecx, ecx
cmove esi, eax
cmp byte [ecx + 0x1c], al
je 0x474e0a
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jne 0x474dfb
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x474e12
cmp dx, ax
jne 0x474d25
mov eax, dword [esi + 0x18]
push 1
mov dword [eax + 0x20], edx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x20], 0
je 0x474d5e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test ecx, ecx
jne 0x474e0d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x474e12
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
je 0x474e59
mov eax, ebx
lea ecx, [esi + 0x20]
shr eax, 0x10
cwde
push eax
movsx eax, bx
push eax
call fcn.004739e0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x24
jne 0x474e70
cmp dword [ecx + 0x14], 0xffffffff
je 0x474e59
cmp dword [ecx + 0x18], 0xffffffff
je 0x474e59
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
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