Function at 0x4158b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x55406c]
xor eax, esp
mov dword [esp + 0x38], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 1
jne 0x415c8e
mov esi, dword [ebp + 0xc]
cmp esi, 5
jne 0x415992
mov eax, dword [edi + 0x18]
movsx ecx, dx
shr edx, 0x10
mov dword [esp + 0x18], ecx
mov dword [eax + 0x20], 1
movsx eax, dx
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x415980
test eax, eax
je 0x415980
cmp dword [edi + 0x64], 0
je 0x415980
mov esi, dword [sym.imp.USER32.dll_CopyRect]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
lea eax, [edi + 0x44]
mov dword [esp + 0x38], 0
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], ecx
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [edi + 0x64]
add eax, 0x18
mov dword [esp + 0x38], 0
push eax
mov dword [esp + 0x40], 0
call esi
mov ecx, dword [edi + 0x64]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebx], 0
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x20], 0
jmp 0x415c88
cmp esi, 0x110
jne 0x415a78
mov eax, dword [edi + 0x18]
lea esi, [edi + 4]
push 1
mov dword [eax + 0x20], 1
push dword [edi + 0x74]
push dword [edi + 0x70]
push 0
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_MoveWindow]
push ecx
mov ecx, esi
call fcn.00415700
call fcn.004283c0
mov ecx, dword [edi + 0x68]
mov dword [edi + 0x68], eax
test ecx, ecx
je 0x4159dc
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [edi + 0x64]
test edx, edx
je 0x415a55
mov ecx, edi
lea eax, [edi + 0x20]
neg ecx
xorps xmm0, xmm0
sbb ecx, ecx
and ecx, eax
lea eax, [esp + 0x34]
mov dword [edx + 0x3c], ecx
push eax
push dword [esi]
movups xmmword [esp + 0x3c], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [sym.imp.USER32.dll_CopyRect]
lea eax, [esp + 0x34]
push eax
lea eax, [edi + 0x44]
push eax
call esi
mov ecx, edi
mov dword [edi + 0x58], 0x40b
neg ecx
lea eax, [edi + 0x2c]
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, dword [edi + 0x64]
push 0
call fcn.00427c00
lea eax, [esp + 0x34]
push eax
mov eax, dword [edi + 0x64]
add eax, 0x18
push eax
call esi
mov ecx, dword [edi + 0x64]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [edi + 0x64]
mov eax, dword [ecx]
call dword [eax + 4]
lea esi, [edi + 4]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.00416360
mov dword [ebx], 1
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x20], 0
jmp 0x415c88
cmp esi, 0x111
jne 0x415ad1
mov esi, dword [sym.imp.USER32.dll_EndDialog]
movzx eax, cx
mov ecx, 1
mov dword [esp + 0x14], eax
cmp cx, ax
jne 0x415ab2
push ecx
push dword [edi + 4]
call esi
cmp dword [esp + 0x10], 0
mov dword [ebx], 0
jne 0x415ba3
mov eax, dword [esp + 0x14]
mov ecx, 2
cmp cx, ax
jne 0x415c8e
push ecx
push dword [edi + 4]
call esi
mov dword [ebx], 0
jmp 0x415c83
lea eax, [esi - 0x200]
cmp eax, 0xd
ja 0x415b98
movsx eax, dx
mov dword [esp + 0x18], eax
mov eax, edx
shr eax, 0x10
movsx edx, ax
lea eax, [esi - 0x200]
cmp eax, 3
ja case.default.0x415afa
jmp dword [eax*4 + 0x415ca4]
mov eax, dword [esp + 0x18]
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push ecx
push eax
lea ecx, [edi + 0x20]
mov dword [esp + 0x28], edx
call fcn.00427730
jmp 0x415b7d
mov eax, dword [esp + 0x18]
push 1
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [edi + 0x20]
mov dword [esp + 0x34], edx
call fcn.00427730
jmp 0x415b7d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push ecx
push eax
lea ecx, [edi + 0x20]
mov dword [esp + 0x38], edx
call fcn.00427790
jmp 0x415b7d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push ecx
push eax
lea ecx, [edi + 0x20]
mov dword [esp + 0x40], edx
call fcn.004277d0
jmp 0x415b7d
mov dword [esp + 0x10], 0
mov ecx, dword [edi + 0x18]
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x20], eax
cmp dword [esp + 0x10], 0
mov dword [ebx], 0
jne 0x415ba3
mov ecx, dword [esp + 0x14]
cmp esi, 0x14
jne 0x415bbc
mov dword [ebx], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c23b5
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0xf
jne 0x415bd8
sub esp, 0x10
mov dword [esp + 0x20], 1
mov ecx, edi
call fcn.00416090
jmp 0x415c81
cmp esi, 0x10
jne 0x415bfa
push ecx
push dword [edi + 4]
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [ebx], 0
jmp 0x415c83
cmp esi, 0x318
je 0x415bc1
cmp esi, 0x2a2
jne 0x415c57
mov eax, dword [edi + 0x18]
lea ecx, [edi + 0x20]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [eax + 0x20], 1
mov byte [edi + 0x26], 0
mov eax, dword [edi + 0x20]
call dword [eax + 0xc]
test eax, eax
je 0x415c41
mov edx, dword [eax]
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call dword [edx + 0x54]
mov dword [edi + 0x28], 0
mov dword [ebx], 0
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x20], 0
jmp 0x415c88
cmp esi, 0x2a3
je 0x415c0a
cmp esi, 0x1400
jne 0x415c8e
mov edx, dword [edi]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x18], 1
push ecx
push esi
mov ecx, edi
call dword [edx + 0x10]
mov dword [ebx], eax
cmp dword [esp + 0x10], 0
jne 0x415ba3
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c23b5
mov esp, ebp
pop ebp
ret 0x18