Function at 0x50197122
Capabilities:
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x1f4
push ebx
mov ebx, dword [ebp + 0x78]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x68], edi
je 0x50197154
cmp dword [ebx + 0x1c], edi
je 0x50197154
mov eax, dword [ebx + 0x24]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x44]
mov dword [0x50297b20], eax
mov esi, dword [ebp + 0x74]
push ebx
push 8
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
test byte [ebx + 8], 0x20
mov dword [ebx + 0x48], edi
jne 0x50197174
push dword [ebx + 0x18]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x12c2
push esi
mov dword [ebx], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 8
push 0x130e
push eax
mov dword [ebx + 0x3c], eax
call esi
push 0x12c1
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push edi
push 0xff00
push 1
push 0x10
push 0x1b5a
mov dword [ebx + 0x40], eax
push dword [0x5029a6d0]
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageA]
push 5
mov dword [ebx + 0x44], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [ebx + 0x44]
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push dword [ebx + 0x44]
push edi
push 0x1109
push dword [ebx + 0x40]
call esi
mov ecx, dword [ebx + 0x14]
cmp ecx, edi
je 0x50197212
push 0xffff0000
push dword [ebx + 0x40]
mov dword [ebp + 0x68], 1
call fcn.50272bbe
push 1
push dword [ebx + 0x40]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push dword [ebx + 0x3c]
jmp 0x50197216
push edi
push dword [ebx + 0x40]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x20]
and byte [ebp - 0x108], 0
test byte [ebx + 8], 0x40
mov dword [ebp + 0x2c], eax
je 0x50197261
mov ecx, eax
shr ecx, 0x10
test cx, cx
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x2c], edi
jne 0x50197261
push 0x80
lea ecx, [ebp - 0x188]
movzx eax, ax
push ecx
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x108]
mov dword [ebp + 0x54], eax
cmp dword [ebp + 0x68], edi
je 0x50197276
mov dword [ebp + 0x28], 0x104
mov dword [ebp + 0x30], 0xb2
jmp 0x5019727c
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x28], edi
push 0xb
pop eax
push edi
push edi
push eax
push dword [ebx + 0x3c]
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], edi
call esi
xor eax, eax
cmp dword [ebx + 0x1c], edi
mov dword [ebp + 0x78], eax
jbe 0x5019734b
jmp 0x501972ac
mov eax, dword [ebp + 0x78]
cmp dword [ebp + 0x68], edi
je 0x501972b5
push edi
push edi
jmp 0x501972bd
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp + 0x60]
push ecx
push 0xb2
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebx + 0x24]
push dword [ecx + eax*4]
call fcn.50272bbe
cmp eax, edi
je 0x50197330
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
push 0x3e8
push 0x1307
push dword [ebx + 0x3c]
call esi
test eax, eax
jl 0x5019730e
cmp dword [ebp + 0x68], edi
jne 0x5019730e
mov eax, dword [ebp + 0x60]
cmp dword [ebp + 0x28], eax
jge 0x50197303
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x64]
cmp dword [ebp + 0x30], eax
jge 0x5019730e
mov dword [ebp + 0x30], eax
test byte [ebx + 8], 0x40
je 0x5019733c
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x54]
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x5019733c
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x2c], eax
jmp 0x5019733c
push dword [ebp + 0x78]
push ebx
call fcn.5019682e
dec dword [ebp + 0x78]
inc dword [ebp + 0x78]
mov eax, dword [ebp + 0x78]
cmp eax, dword [ebx + 0x1c]
jb 0x501972a9
push edi
push 1
push 0xb
push dword [ebx + 0x3c]
call esi
mov eax, dword [ebx + 0x28]
cmp eax, edi
je 0x50197364
push edi
push 1
push dword [ebp + 0x74]
call eax
cmp dword [ebp + 0x7c], edi
jne 0x5019766b
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x74]
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x34], edi
call dword [sym.imp.USER32.dll_MapDialogRect]
lea eax, [ebp + 8]
push eax
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x10], eax
lea esi, [ebp + 8]
lea edi, [ebp + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jge 0x501973ae
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x40]
cmp dword [ebp + 0x50], eax
jge 0x501973b9
mov dword [ebp + 0x50], eax
cmp dword [ebp + 0x68], 0
je 0x501973ce
lea esi, [ebp + 0x44]
lea edi, [ebp + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x50197460
mov dword [ebp + 0x78], 2
lea esi, [ebp + 0x44]
lea edi, [ebp + 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x58]
push eax
push 1
movsd dword es:[edi], dword [esi]
push 0x1328
push dword [ebx + 0x3c]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x5c]
sub ecx, dword [ebp + 0x58]
sub dword [ebp + 0x64], eax
mov edx, dword [ebp + 0x4c]
xor eax, eax
cmp ecx, edx
mov dword [ebp + 0x60], ecx
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x58], eax
jge 0x50197414
mov dword [ebp + 0x60], edx
mov ecx, dword [ebp + 0x50]
cmp dword [ebp + 0x64], ecx
jge 0x5019741f
mov dword [ebp + 0x64], ecx
push 0x16
push dword [ebp + 0x64]
push dword [ebp + 0x60]
push eax
push eax
push eax
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_SetWindowPos]
dec dword [ebp + 0x78]
jne 0x501973d5
lea esi, [ebp + 0x58]
lea edi, [ebp + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x58]
lea edi, [ebp + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x34]
push eax
push 0
movsd dword es:[edi], dword [esi]
push 0x1328
push dword [ebx + 0x3c]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 0x68], 0
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
je 0x501974b9
lea eax, [ebp + 0x18]
push eax
push dword [ebx + 0x40]
call edi
push 2
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x74]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0x2d
call fcn.50259232
mov ecx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x50]
lea ecx, [ecx + eax*8]
add eax, ecx
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 0x3c], eax
add dword [ebp + 0x34], eax
add dword [ebp + 0x4c], eax
add dword [ebp + 0x38], ecx
add dword [ebp + 0x40], ecx
mov edx, ecx
sub edx, dword [ebp + 0x48]
add dword [ebp + 0x50], ecx
lea edx, [edx + esi + 7]
mov dword [ebp + 0x24], edx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x74]
call edi
mov eax, dword [ebp + 0x4c]
sub eax, dword [ebp + 0x10]
push 0x16
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x68]
neg eax
sbb eax, eax
and eax, 5
mov esi, eax
sub eax, dword [ebp - 4]
sub esi, dword [ebp + 0x14]
add eax, dword [ebp + 4]
add esi, dword [ebp + 0x50]
add eax, esi
push eax
mov eax, dword [ebp]
sub eax, dword [ebp - 8]
add eax, dword [ebp + 0x7c]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp + 0x68], 0
je 0x50197529
mov eax, dword [ebp + 0x24]
sub eax, dword [ebp + 0x1c]
push 0x16
push eax
mov eax, dword [ebp + 0x20]
sub eax, dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
push dword [ebx + 0x40]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x5019753b
push 2
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x74]
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x38]
sub edx, eax
mov dword [ebx + 0x58], eax
mov eax, dword [ebp + 0x40]
sub eax, ecx
test byte [ebx + 8], 0x20
mov dword [ebx + 0x5c], ecx
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x64], eax
je 0x501975d5
push 0x3026
push dword [ebp + 0x74]
mov dword [ebp + 0x78], 0x5001c820
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp + 0x44]
push ecx
push eax
mov dword [ebp + 0x54], eax
call edi
push 2
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x74]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x50]
mov edi, dword [ebp + 0x7c]
push 0x14
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x4c]
sub ecx, dword [ebp + 0x44]
add eax, esi
add ecx, edi
push ecx
push eax
push dword [ebp + 0x44]
push 0
push dword [ebp + 0x54]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0x3023
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebx + 0x4c], 0x3024
jmp 0x501975e6
mov edi, dword [ebp + 0x7c]
mov dword [ebp + 0x78], 0x5001c80c
mov dword [ebx + 0x4c], 1
xor eax, eax
cmp dword [ebp + 0x68], eax
je 0x5019760d
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x58], eax
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x74]
mov dword [ebp + 0x60], 4
call dword [sym.imp.USER32.dll_MapDialogRect]
sub edi, dword [ebp + 0x60]
push esi
push edi
push 9
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.50272bbe
test byte [ebx + 8], 0x80
je 0x50197632
push dword [ebp + 0x78]
push 0x12c3
push dword [ebp + 0x74]
call fcn.50272bbe
test byte [ebx + 9], 0x10
jne 0x50197648
push dword [ebp + 0x78]
push 0x12c4
push dword [ebp + 0x74]
call fcn.50272bbe
push 0
push 0
push 0x402
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
cmp dword [ebp + 0x68], edi
mov dword [ebx + 0x50], edi
je 0x501976a6
push edi
push 9
push 0x110a
push dword [ebx + 0x40]
mov dword [ebp - 0x54], 4
call esi
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x54]
push eax
push edi
push 0x110c
push dword [ebx + 0x40]
call esi
test eax, eax
je 0x501976a6
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x6c]
mov dword [ebp + 0x2c], eax
push edi
push dword [ebp + 0x2c]
push 0x130c
push dword [ebx + 0x3c]
call esi
push 1
push ebx
call fcn.50272bbe
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc