Function at 0x40522e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp ebx, 0x110
je 0x405254
cmp ebx, 0x408
jne 0x40579b
cmp ebx, 0x110
mov dword [0x435d44], esi
jne 0x4052ee
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [0x43bae8], edi
mov dword [esp + 4], 1
mov dword [esp], edi
call ebx
push esi
push esi
mov dword [0x435d38], eax
mov dword [esp + 4], 2
mov dword [esp], edi
call ebx
push edx
push edx
mov dword [0x435d34], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x1c
mov dword [esp], edi
call sym.n_
mov eax, dword [0x43cb10]
sub esp, 0xc
mov dword [esp + 4], 0xfffffff2
mov dword [esp], edi
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_SetClassLongW]
sub esp, 0xc
mov dword [esp], 4
call fcn.00403b26
push ecx
mov dword [0x43cb00], eax
mov dword [0x435d44], 1
mov eax, dword [0x40b014]
mov ebx, eax
shl ebx, 6
add ebx, dword [0x43ba80]
test eax, eax
jns 0x405314
mov dword [esp], 0x40b
call sym._20
push ecx
jmp 0x405592
cmp dword [0x435d44], 1
jne 0x405370
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._8
test eax, eax
push edx
push edx
je 0x405370
mov eax, dword [0x43cb18]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
sub esp, 0x10
cmp dword [0x43cb00], 0
sete al
jmp 0x40596d
cmp dword [ebx], 0
jne 0x405302
jmp 0x405794
cmp dword [0x43cb00], 0
jne 0x4055c8
mov eax, dword [0x40b014]
cmp dword [0x43ba84], eax
jbe 0x4055c8
mov eax, dword [ebx + 0x24]
mov esi, dword [ebx + 0x14]
mov dword [esp + 4], eax
mov eax, dword [0x40c8f4]
add eax, 0xf000
mov dword [esp], eax
call sym.3
push eax
push eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], 0xfffffc19
mov dword [esp], edi
mov dword [esp + 8], eax
call sym.n_
mov eax, dword [ebx + 0x1c]
sub esp, 0xc
mov dword [esp + 4], 0xfffffc1b
mov dword [esp], edi
mov dword [esp + 8], eax
call sym.n_
mov eax, dword [ebx + 0x28]
sub esp, 0xc
mov dword [esp + 4], 0xfffffc1a
mov dword [esp], edi
mov dword [esp + 8], eax
call sym.n_
mov eax, dword [sym.imp.USER32.dll_GetDlgItem]
sub esp, 0xc
mov dword [esp + 4], 3
mov dword [esp], edi
mov dword [ebp - 0x30], eax
call eax
cmp dword [0x43ba2c], 0
push edx
mov dword [ebp - 0x2c], eax
push edx
je 0x405430
and esi, 0xfffffefd
or esi, 4
mov eax, esi
and eax, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x34], eax
call eax
push eax
push eax
mov eax, esi
and eax, 0x100
mov edx, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
mov dword [esp], eax
call edx
push eax
push eax
mov eax, esi
and eax, 2
and esi, 4
mov dword [esp], eax
call sym.g
push eax
mov eax, dword [0x435d34]
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], esi
mov dword [esp], eax
call edx
push eax
push eax
test esi, esi
mov eax, dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [esp + 4], 0
mov dword [esp], edi
je 0x4055fa
call eax
push esi
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf060
mov dword [esp], eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [ebp - 0x2c]
sub esp, 0xc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf4
mov dword [esp], eax
call esi
sub esp, 0x10
cmp dword [0x43ba2c], 0
mov eax, dword [0x435d38]
je 0x405521
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x401
mov dword [esp], edi
call esi
mov eax, dword [0x435d34]
sub esp, 0x10
mov dword [esp], eax
call sym._22
push eax
call sym._18
mov dword [esp], 0x435d60
mov dword [esp + 4], eax
call sym._48
push eax
push eax
mov esi, dword [ebx + 0x18]
mov dword [esp], 0x435d60
call sym._49
add eax, eax
push edx
add eax, 0x435d60
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.3
push ecx
push ecx
mov dword [esp + 4], 0x435d60
mov dword [esp], edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
push esi
mov dword [esp + 4], 0
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym._8
test eax, eax
push edx
push edx
je 0x40560b
mov eax, dword [0x435d44]
mov edx, dword [0x40b014]
add edx, eax
shl eax, 6
add ebx, eax
cmp edx, dword [0x43ba84]
mov dword [0x40b014], edx
jne 0x40537a
mov dword [esp], 1
call fcn.00403b26
push esi
jmp 0x40537a
mov eax, dword [0x43cb18]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x435d48]
push ecx
mov dword [0x43bae8], 0
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_EndDialog]
push ebx
push ebx
jmp 0x405765
call eax
push ecx
push ecx
mov dword [esp + 8], 1
jmp 0x4054b1
cmp dword [ebx], 0
je 0x405592
cmp dword [ebx + 4], 5
je 0x405637
mov eax, dword [0x43cb18]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push eax
mov eax, dword [ebx]
mov dword [0x435d40], ebx
test eax, eax
jle 0x405765
jmp 0x405656
cmp dword [0x43ba2c], 0
jne 0x405794
cmp dword [0x43ba20], 0
jne 0x405592
jmp 0x405794
add eax, dword [0x43cb1c]
mov dword [esp + 0x10], ebx
mov edx, dword [ebx + 4]
mov dword [esp + 8], edi
movzx eax, ax
mov edx, dword [edx*4 + 0x40c574]
mov dword [esp + 4], eax
mov eax, dword [0x43baec]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
test eax, eax
mov dword [0x43cb18], eax
je 0x405765
mov edx, dword [ebx + 0x2c]
mov dword [esp + 4], 6
lea esi, [ebp - 0x28]
mov dword [esp], eax
mov dword [esp + 8], edx
call sym.n_
sub esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0x3fa
mov dword [esp], edi
call eax
push edx
push edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push ecx
push ecx
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x24]
push esi
push esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x18], 0x15
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x43cb18]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
sub esp, 0x1c
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._8
cmp dword [0x43cb00], 0
push eax
push eax
jne 0x405794
mov eax, dword [0x43cb18]
mov dword [esp + 4], 8
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call eax
push eax
push eax
mov dword [esp], 0x405
call sym._20
push eax
cmp dword [0x433ca0], 0
jne 0x405794
cmp dword [0x43cb18], 0
je 0x405794
mov dword [esp + 4], 0xa
mov dword [esp], edi
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov dword [0x433ca0], 1
xor eax, eax
jmp 0x40596d
cmp ebx, 0x47
jne 0x4057e2
mov eax, dword [0x435d3c]
mov dword [esp + 0x18], 0x13
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
sub esp, 0x1c
jmp 0x405957
cmp ebx, 5
jne 0x40580b
xor eax, eax
cmp esi, 1
setne al
lea eax, [eax + eax*4]
mov dword [esp + 4], eax
mov eax, dword [0x435d3c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push edi
jmp 0x405957
cmp ebx, 0x40d
jne 0x40582d
mov eax, dword [0x43cb18]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x43cb18], esi
push ebx
jmp 0x405765
cmp ebx, 0x11
jne 0x405858
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, 1
sub esp, 0xc
jmp 0x40596d
cmp ebx, 0x111
jne 0x405957
movzx eax, si
mov dword [esp], edi
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
push ecx
push ecx
jne 0x40588c
cmp dword [ebp - 0x2c], 1
jne 0x4058c9
mov dword [esp], 1
jmp 0x4058df
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf3
mov dword [esp], eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x30]
sub esp, 0x10
mov dword [esp], edx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
push edx
jne 0x40587d
jmp 0x405794
cmp dword [ebp - 0x2c], 3
jne 0x4058e7
cmp dword [0x40b014], 0
jle 0x405933
mov dword [esp], 0xffffffff
call sym.K
push edi
jmp 0x405957
cmp dword [ebp - 0x2c], 2
jne 0x405933
cmp dword [0x43ba2c], 0
je 0x40590f
mov dword [esp], 2
call fcn.00403b26
mov dword [0x435d48], 2
push ecx
jmp 0x40592a
mov dword [esp], 3
call fcn.00403b26
test eax, eax
push edx
jne 0x405957
mov dword [0x435d48], 1
mov dword [esp], 0x78
jmp 0x4058df
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x111
mov dword [esp + 0xc], eax
mov eax, dword [0x43cb18]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.0040513b
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10