Function at 0x524cf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56b2e6
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x18], 0
cmp dword [ebx + 0x1ac], 0
sete al
test al, al
jne 0x5253c3
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x524db8
cmp byte [ebx + 0x1e5], 0
je 0x5253c3
push ebx
call fcn.00525b30
cmp dword [ebx + 0x1b0], esi
je 0x524db8
mov eax, dword [ebx + 0x1b0]
test eax, eax
jne 0x524d83
push 0x80004003
call fcn.0053c010
mov ecx, dword [eax]
mov edx, dword [ecx + 0x158]
push 0
push eax
call edx
mov eax, dword [ebx + 0x1b0]
test eax, eax
jne 0x524da4
push 0x80004003
call fcn.0053c010
mov ecx, dword [eax]
mov edx, dword [ecx + 0x9c]
push 1
push eax
call edx
mov edi, ebx
call fcn.00525a70
mov eax, dword [ebx + 0x1e0]
test eax, eax
je 0x5253c3
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5253c3
cmp esi, 1
jne 0x524e38
cmp byte [ebx + 0x1e6], 0
je 0x5253c3
mov byte [ebx + 0x1e6], 0
cmp byte [ebx + 0x1e6], 0
lea edi, [ebx + 0x54]
push 0
mov eax, edi
je 0x524fde
mov ecx, str.IDS_DONE
lea esi, [esp + 0x34]
call fcn.004acda0
mov dword [esp + 0x2b0], 2
cmp dword [eax + 0x18], 8
mov dword [esp + 0x18], 1
jb 0x52500e
mov eax, dword [eax + 4]
jmp 0x525011
test esi, esi
jne 0x524e82
cmp byte [ebx + 0x1e7], 1
je 0x5253c3
mov al, byte [ebx + 0x1e6]
cmp al, 1
jne 0x524fce
mov esi, dword [ebx + 0x1e0]
add esi, 4
mov eax, 0xffffffff
call fcn.0049a040
mov ebx, dword [ebx + 0x1e0]
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x5253c3
cmp esi, 3
jne 0x524f72
lea esi, [esp + 0x20]
mov byte [ebx + 0x1e7], 0
call fcn.0040e410
mov dword [esp + 0x2b0], 0
mov edx, dword [ebx + 0x1e0]
add edx, 4
push edx
call fcn.0049a350
mov eax, dword [ebx + 0x1e0]
add eax, 4
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 0x84]
push ecx
call fcn.00423e10
mov byte [esp + 0x2b0], 1
call fcn.00424330
push 0xd
lea edx, [esp + 0x88]
push edx
call fcn.00424110
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x138]
push eax
call fcn.0040eb50
call fcn.00424330
push 0xd
push eax
lea eax, [esp + 0x8c]
call fcn.00424110
push 0
push ecx
mov esi, esp
mov dword [esp + 0x2c], esp
push 1
push 0xacbd
lea eax, [ebx + 0x1ac]
call fcn.0046f8d0
call fcn.0046fb00
call fcn.0048c7f0
mov ecx, dword [esp + 0x144]
add esp, 8
cmp dword [esp + 0x150], 8
jae 0x524f57
lea ecx, [esp + 0x13c]
push ebx
call fcn.00525900
lea edi, [esp + 0x84]
call fcn.004243a0
lea ecx, [esp + 0x20]
jmp 0x5253be
cmp esi, 4
jne 0x524dea
mov eax, dword [ebx + 0x1e0]
add eax, esi
mov byte [ebx + 0x1e7], 0
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
mov esi, esp
mov dword [esp + 0x2c], esp
push 1
push 0xacbd
lea eax, [ebx + 0x1ac]
call fcn.0046f8d0
call fcn.0046fb00
call fcn.0048c7f0
mov ecx, dword [ebx + 0x1e8]
add esp, 8
push ebx
call fcn.00525900
jmp 0x5253c3
test al, al
sete dl
mov byte [ebx + 0x1e6], dl
jmp 0x524df1
mov ecx, str.IDS_EDIT
lea esi, [esp + 0x6c]
call fcn.004acda0
mov dword [esp + 0x2b0], 3
cmp dword [eax + 0x18], 8
mov dword [esp + 0x18], 2
jb 0x52500e
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
jmp 0x525015
add eax, 4
mov dword [esp + 0x1c], eax
push ecx
mov esi, esp
mov dword [esp + 0x30], esp
push 1
lea eax, [ebx + 0x1ac]
push 0xacbf
mov dword [esp + 0x2c], eax
call fcn.0046f8d0
call fcn.0046fb00
push 1
mov dword [esp + 0x2b8], 4
mov eax, dword [esp + 0x28]
push 0xacbd
call fcn.0046f8d0
lea esi, [esp + 0x30]
call fcn.0046fb00
push ecx
mov ecx, esp
mov byte [esp + 0x2b8], 5
mov dword [esp + 0x30], esp
call fcn.004724f0
mov edx, dword [ebx + 0x30]
mov esi, dword [esp + 0x24]
push edx
mov byte [esp + 0x2bc], 6
call fcn.005212a0
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x52509f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test byte [esp + 0x18], 2
je 0x5250b4
and dword [esp + 0x18], 0xfffffffd
lea ecx, [esp + 0x68]
call fcn.0040eb20
mov dword [esp + 0x2b0], 0xffffffff
test byte [esp + 0x18], 1
je 0x5250d4
and dword [esp + 0x18], 0xfffffffe
lea ecx, [esp + 0x30]
call fcn.0040eb20
movzx eax, byte [ebx + 0x1e6]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov esi, esp
mov dword [esp + 0x30], esp
push 1
push 0xacbf
call fcn.0046f8d0
call fcn.0046fb00
call fcn.0048b640
add esp, 8
cmp byte [ebx + 0x1e6], 1
jne 0x52520c
mov ecx, dword [ebx + 0x1e0]
add ecx, 4
lea esi, [ebx + 0x1e8]
push ecx
call fcn.0049a350
push 0
mov ecx, str.IDS_EDIT_NAME_PROMPT
lea esi, [esp + 0x34]
mov eax, edi
call fcn.004acda0
cmp dword [eax + 0x18], 8
jb 0x52513f
mov eax, dword [eax + 4]
jmp 0x525142
add eax, 4
mov ecx, eax
lea eax, [ebx + 0x1e8]
call fcn.00463700
lea ecx, [esp + 0x30]
mov byte [esp + 0x17], al
call fcn.0040eb20
cmp byte [esp + 0x17], 0
je 0x52517b
mov eax, dword [ebx + 0x1e0]
mov edx, dword [eax + 4]
add eax, 4
push 0x57fde0
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [ebx + 0x1e0]
mov eax, dword [esi + 4]
add esi, 4
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xfffff7ff
cmp eax, ecx
je 0x5251a8
push ecx
mov ecx, dword [esi]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebx + 0x1e0]
mov edx, dword [eax + 4]
add eax, 4
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebx + 0x1e0]
add esi, 4
or eax, 0xffffffff
call fcn.0049a040
mov ebx, dword [ebx + 0x1e0]
mov eax, dword [ebx + 4]
add ebx, 4
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x20]
push 0
push ecx
mov esi, esp
mov dword [esp + 0x30], esp
push 1
push 0xacc0
call fcn.0046f8d0
call fcn.0046fb00
call fcn.0048b640
add esp, 8
jmp 0x5253c3
lea esi, [esp + 0x1c]
call fcn.0040e410
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x2b0], 7
cmp eax, 2
jne 0x52530e
mov ecx, dword [ebx + 0x1e0]
add ecx, 4
push ecx
call fcn.0049a350
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], 0
jne 0x52527e
push 0
mov ecx, str.IDS_EDIT_NAME_PROMPT
lea esi, [esp + 0x34]
mov eax, edi
call fcn.004acda0
or dword [esp + 0x18], 4
cmp dword [eax + 0x18], 8
jb 0x525267
mov ecx, dword [eax + 4]
jmp 0x52526a
lea ecx, [eax + 4]
lea eax, [ebx + 0x1e8]
call fcn.00463700
mov byte [esp + 0x17], 1
test al, al
jne 0x525283
mov byte [esp + 0x17], 0
test byte [esp + 0x18], 4
je 0x525293
lea ecx, [esp + 0x30]
call fcn.0040eb20
cmp byte [esp + 0x17], 0
jne 0x525365
lea eax, [ebx + 0x1e8]
lea edx, [esp + 0x1c]
call fcn.0040e850
test al, al
je 0x525365
mov ecx, dword [ebx + 0x1a8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x1c]
push edx
call eax
test al, al
je 0x525365
mov esi, dword [ebx + 0x1e0]
add esi, 4
xor eax, eax
call fcn.0049a040
mov eax, dword [esp + 0x20]
push 1
push ecx
mov esi, esp
mov dword [esp + 0x30], esp
push 1
push 0xacbd
mov byte [ebx + 0x1e7], 1
call fcn.0046f8d0
call fcn.0046fb00
call fcn.0048c7f0
add esp, 8
jmp 0x525383
cmp eax, 1
jne 0x525365
mov ecx, dword [ebx + 0x1e8]
cmp dword [ecx - 0xc], 0
jne 0x525365
push 0
mov ecx, str.IDS_EDIT_NAME_PROMPT
lea esi, [esp + 0x50]
mov eax, edi
call fcn.004acda0
mov byte [esp + 0x2b0], 8
cmp dword [eax + 0x18], 8
jb 0x525344
mov eax, dword [eax + 4]
jmp 0x525347
add eax, 4
mov edx, eax
lea edi, [ebx + 0x1e8]
call fcn.00423a40
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2b0], 7
call fcn.0040eb20
mov edx, dword [ebx + 0x1e0]
mov eax, dword [edx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0x1e8]
push ebx
call fcn.00525900
mov esi, dword [ebx + 0x1e0]
mov ecx, dword [esi + 4]
add esi, 4
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x800
cmp eax, ecx
je 0x5253b0
mov edx, dword [esi]
push ecx
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebx + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
lea ecx, [esp + 0x1c]
call fcn.00423d60
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 8