Function at 0x415560
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x55306c]
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 0x41593e
mov esi, dword [ebp + 0xc]
cmp esi, 5
jne 0x415642
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 0x415630
test eax, eax
je 0x415630
cmp dword [edi + 0x64], 0
je 0x415630
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 0x415938
cmp esi, 0x110
jne 0x415728
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.004153b0
call fcn.004224a0
mov ecx, dword [edi + 0x68]
mov dword [edi + 0x68], eax
test ecx, ecx
je 0x41568c
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [edi + 0x64]
test edx, edx
je 0x415705
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.00421ce0
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.00416010
mov dword [ebx], 1
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x20], 0
jmp 0x415938
cmp esi, 0x111
jne 0x415781
mov esi, dword [sym.imp.USER32.dll_EndDialog]
movzx eax, cx
mov ecx, 1
mov dword [esp + 0x14], eax
cmp cx, ax
jne 0x415762
push ecx
push dword [edi + 4]
call esi
cmp dword [esp + 0x10], 0
mov dword [ebx], 0
jne 0x415853
mov eax, dword [esp + 0x14]
mov ecx, 2
cmp cx, ax
jne 0x41593e
push ecx
push dword [edi + 4]
call esi
mov dword [ebx], 0
jmp 0x415933
lea eax, [esi - 0x200]
cmp eax, 0xd
ja 0x415848
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.0x4157aa
jmp dword [eax*4 + 0x415954]
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.00421810
jmp 0x41582d
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.00421810
jmp 0x41582d
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.00421870
jmp 0x41582d
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.004218b0
jmp 0x41582d
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 0x415853
mov ecx, dword [esp + 0x14]
cmp esi, 0x14
jne 0x41586c
mov dword [ebx], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c1e08
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 0xf
jne 0x415888
sub esp, 0x10
mov dword [esp + 0x20], 1
mov ecx, edi
call fcn.00415d40
jmp 0x415931
cmp esi, 0x10
jne 0x4158aa
push ecx
push dword [edi + 4]
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [ebx], 0
jmp 0x415933
cmp esi, 0x318
je 0x415871
cmp esi, 0x2a2
jne 0x415907
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 0x4158f1
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 0x415938
cmp esi, 0x2a3
je 0x4158ba
cmp esi, 0x1400
jne 0x41593e
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 0x415853
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c1e08
mov esp, ebp
pop ebp
ret 0x18