Function at 0x477760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de0e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x50f52c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
mov edi, 7
xor eax, eax
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], esi
push 0x4e25d8
mov word [ecx + 4], ax
call fcn.00401860
mov dword [ebp - 4], esi
mov edx, dword [0x510a4c]
sub esp, 0x188
mov ecx, esp
mov dword [ebp - 0x10], esp
push edx
call fcn.00410c80
mov byte [ebp - 4], 1
mov eax, dword [0x510a50]
sub esp, 0x3c4
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00462ac0
mov byte [ebp - 4], 2
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 6
xor edx, edx
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], esi
push 0x4eddf8
mov word [ecx + 4], dx
call fcn.00401860
mov byte [ebp - 4], 3
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041b950
mov ecx, dword [0x510a50]
push 0xff
call fcn.0041ebe0
mov eax, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetParent]
push eax
call esi
lea ecx, [ebx + 0x54]
push eax
call fcn.00489280
lea ecx, [ebp - 0x10]
push 0x6b
push ecx
call fcn.004285a0
add esp, 8
mov dword [ebp - 4], 4
mov edx, dword [ebx + 4]
mov edi, dword [eax]
push edx
call esi
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041c0e0
mov eax, dword [ebx + 4]
push eax
call esi
mov edi, eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xfff7ffff
cmp eax, ecx
je 0x47789b
push ecx
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebx + 4]
push ecx
call esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3023
push eax
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebx + 4]
push edx
call esi
push 0x3024
push eax
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 4]
push eax
call esi
push 2
push eax
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x14]
push 0x414
push ecx
call fcn.004285a0
add esp, 8
mov dword [ebp - 4], 5
mov edx, dword [eax]
mov eax, dword [ebx + 4]
push 0x43f
push eax
mov dword [ebp - 0x10], edx
call edi
mov ecx, dword [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c0e0
mov edx, dword [ebx + 4]
push 0x459
push edx
call edi
push 1
push 0x4ecbf0
mov dword [ebp - 0x14], eax
push str.IDB_PNG_BANNER
lea eax, [ebp - 0x14]
push eax
call fcn.00424e90
mov eax, dword [0x510a50]
cmp dword [eax + 0x25c], 0
je 0x477971
cmp dword [eax + 0x284], 0
je 0x477968
mov dword [ebp - 0x10], 0x4eddd0
jmp 0x477978
mov dword [ebp - 0x10], 0x4eddac
jmp 0x477978
mov dword [ebp - 0x10], 0x4edd8c
mov ecx, dword [ebx + 4]
push 0x453
push ecx
call edi
mov edx, dword [ebp - 0x10]
push 1
push 0x4ecbf0
mov dword [ebp - 0x14], eax
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00424e90
mov ecx, dword [ebx + 4]
push ecx
call esi
push 4
push 0
push 0x470
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [0x510a50]
sub esp, 0x1c
mov edi, esp
lea edx, [ebp - 0x10]
push 0x421
add esi, 0x84
mov ecx, 7
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004285a0
add esp, 0x24
mov dword [ebp - 4], 6
mov esi, dword [eax]
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x43c
push eax
call edi
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041c0e0
mov eax, dword [0x510a50]
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
cmp esi, dword [eax + 0x10]
jbe 0x477a24
call fcn.004b32e0
mov eax, dword [0x510a50]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
nop
mov ecx, dword [eax + 0x10]
mov esi, eax
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0xc], ecx
jbe 0x477a42
call fcn.004b32e0
mov eax, dword [ebp - 0x20]
mov esi, dword [esi]
test eax, eax
je 0x477a4f
cmp eax, esi
je 0x477a54
call fcn.004b32e0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x1c], eax
jae 0x477ab4
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x477aac
call fcn.004b32e0
xor eax, eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x477a77
call fcn.004b32e0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x34c]
or dword [ebx + 0x54], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x477ab0
call fcn.004b32e0
xor eax, eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x477a9e
call fcn.004b32e0
add dword [ebp - 0x1c], 0x3b4
mov eax, dword [0x510a50]
jmp 0x477a30
mov eax, dword [eax]
jmp 0x477a6a
mov eax, dword [eax]
jmp 0x477a91
mov edx, dword [ebx + 4]
xor eax, eax
cmp dword [ebx + 0x54], eax
sete al
push eax
push 0x43f
push edx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, dword [ebx + 4]
push 0x43f
push eax
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x477af3
mov dword [ebx + 0x54], 1
cmp dword [ebx + 0x54], 0
je 0x477beb
mov ecx, dword [0x510a50]
mov edx, dword [ecx + 0x384]
push 6
add ecx, 0x370
push str.prompt
push edx
push 0
call fcn.00401fe0
test eax, eax
jne 0x477b6a
lea eax, [ebp - 0x14]
push 0xd1
push eax
call fcn.004285a0
add esp, 8
mov dword [ebp - 4], 7
mov ecx, dword [ebx + 4]
mov esi, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push 0x3025
push eax
call edi
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c0e0
jmp 0x477c45
lea edx, [ebp - 0x14]
push 0xce
push edx
call fcn.004285a0
add esp, 8
mov dword [ebp - 4], 8
mov esi, dword [eax]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0x3025
push eax
call edi
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c0e0
lea ecx, [ebp - 0x14]
push 0x411
push ecx
call fcn.004285a0
add esp, 8
mov dword [ebp - 4], 9
mov edx, dword [ebx + 4]
mov esi, dword [eax]
push 0x443
push edx
call edi
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c0e0
jmp 0x477c45
lea eax, [ebp - 0x14]
push 0xd1
push eax
call fcn.004285a0
add esp, 8
mov dword [ebp - 4], 0xa
mov ecx, dword [ebx + 4]
mov esi, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push 0x3025
push eax
call edi
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x477c45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret