Function at 0x408860
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50a168
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ecx, dword [0x56610c]
mov esi, dword [ecx + 8]
test esi, esi
jne 0x4088a3
mov dword [esp + 0x14], 0x10
jmp 0x4088d3
mov eax, 0x51eb851f
cmp esi, 1
jne 0x4088c5
mov edx, dword [ecx + 4]
shl edx, 4
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
jmp 0x4088d3
mov edx, dword [ecx]
shl edx, 4
mul edx
shr edx, 5
mov dword [esp + 0x14], edx
test esi, esi
jne 0x4088de
mov ebx, 0x190
jmp 0x40890e
mov eax, 0x51eb851f
cmp esi, 1
jne 0x4088ff
mov edx, dword [ecx + 4]
imul edx, edx, 0x190
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jmp 0x40890e
mov edx, dword [ecx]
imul edx, edx, 0x190
mul edx
mov ebx, edx
shr ebx, 5
test esi, esi
jne 0x408917
lea edi, [esi + 0x32]
jmp 0x408941
mov eax, 0x51eb851f
cmp esi, 1
jne 0x408935
mov edx, dword [ecx + 4]
imul edx, edx, 0x32
imul edx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jmp 0x408941
mov edx, dword [ecx]
imul edx, edx, 0x32
mul edx
mov edi, edx
shr edi, 5
test esi, esi
jne 0x40894c
mov esi, 0x14
jmp 0x40897e
mov eax, 0x51eb851f
cmp esi, 1
jne 0x40896e
mov ecx, dword [ecx + 4]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x40897e
mov ecx, dword [ecx]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
mul ecx
mov esi, edx
shr esi, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push 0x919
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x14]
push 4
push ecx
push ebx
push edi
push esi
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x56610c]
mov esi, dword [ecx + 8]
test esi, esi
jne 0x4089ba
mov dword [esp + 0x14], 0x10
jmp 0x4089ea
mov eax, 0x51eb851f
cmp esi, 1
jne 0x4089dc
mov edx, dword [ecx + 4]
shl edx, 4
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
jmp 0x4089ea
mov edx, dword [ecx]
shl edx, 4
mul edx
shr edx, 5
mov dword [esp + 0x14], edx
test esi, esi
jne 0x4089f5
mov ebx, 0x190
jmp 0x408a25
mov eax, 0x51eb851f
cmp esi, 1
jne 0x408a16
mov edx, dword [ecx + 4]
imul edx, edx, 0x190
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jmp 0x408a25
mov edx, dword [ecx]
imul edx, edx, 0x190
mul edx
mov ebx, edx
shr ebx, 5
test esi, esi
jne 0x408a2e
lea edi, [esi + 0x44]
jmp 0x408a6d
cmp esi, 1
jne 0x408a54
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 4
add edx, eax
add edx, edx
add edx, edx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jmp 0x408a6d
mov eax, dword [ecx]
mov edx, eax
shl edx, 4
add edx, eax
add edx, edx
add edx, edx
mov eax, 0x51eb851f
mul edx
mov edi, edx
shr edi, 5
test esi, esi
jne 0x408a78
mov esi, 0x14
jmp 0x408aaa
mov eax, 0x51eb851f
cmp esi, 1
jne 0x408a9a
mov ecx, dword [ecx + 4]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x408aaa
mov ecx, dword [ecx]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
mul ecx
mov esi, edx
shr esi, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push 0x411
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x14]
push 4
push ecx
push ebx
push edi
push esi
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x56610c]
mov esi, dword [ecx + 8]
test esi, esi
jne 0x408ae1
lea ebx, [esi + 0x14]
jmp 0x408b18
cmp esi, 1
jne 0x408b03
mov eax, dword [ecx + 4]
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jmp 0x408b18
mov eax, dword [ecx]
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov eax, 0x51eb851f
mul edx
mov ebx, edx
shr ebx, 5
test esi, esi
jne 0x408b26
mov dword [esp + 0x14], 0x1a4
jmp 0x408b5c
mov eax, 0x51eb851f
cmp esi, 1
jne 0x408b4b
mov edx, dword [ecx + 4]
imul edx, edx, 0x1a4
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
jmp 0x408b5c
mov edx, dword [ecx]
imul edx, edx, 0x1a4
mul edx
shr edx, 5
mov dword [esp + 0x14], edx
test esi, esi
jne 0x408b65
lea edi, [esi + 0x58]
jmp 0x408b8f
mov eax, 0x51eb851f
cmp esi, 1
jne 0x408b83
mov edx, dword [ecx + 4]
imul edx, edx, 0x58
imul edx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jmp 0x408b8f
mov edx, dword [ecx]
imul edx, edx, 0x58
mul edx
mov edi, edx
shr edi, 5
test esi, esi
jne 0x408b9a
mov esi, 0x14
jmp 0x408bcc
mov eax, 0x51eb851f
cmp esi, 1
jne 0x408bbc
mov ecx, dword [ecx + 4]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x408bcc
mov ecx, dword [ecx]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
mul ecx
mov esi, edx
shr esi, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push 0x926
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x14]
push 4
push ebx
push ecx
push edi
push esi
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x56610c]
mov esi, dword [ecx + 8]
test esi, esi
jne 0x408c08
mov dword [esp + 0x14], 0x14
jmp 0x408c45
cmp esi, 1
jne 0x408c2e
mov eax, dword [ecx + 4]
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
jmp 0x408c45
mov eax, dword [ecx]
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov dword [esp + 0x14], edx
test esi, esi
jne 0x408c4e
lea ebx, [esi + 0x50]
jmp 0x408c83
cmp esi, 1
jne 0x408c6f
mov eax, dword [ecx + 4]
lea edx, [eax + eax*4]
shl edx, 4
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jmp 0x408c83
mov eax, dword [ecx]
lea edx, [eax + eax*4]
shl edx, 4
mov eax, 0x51eb851f
mul edx
mov ebx, edx
shr ebx, 5
test esi, esi
jne 0x408c8c
lea edi, [esi + 0x78]
jmp 0x408ccf
cmp esi, 1
jne 0x408cb4
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jmp 0x408ccf
mov eax, dword [ecx]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
mul edx
mov edi, edx
shr edi, 5
test esi, esi
jne 0x408cda
mov esi, 0x14
jmp 0x408d0c
mov eax, 0x51eb851f
cmp esi, 1
jne 0x408cfc
mov ecx, dword [ecx + 4]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x408d0c
mov ecx, dword [ecx]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
mul ecx
mov esi, edx
shr esi, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push 0x454
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x14]
push 4
push ecx
push ebx
push edi
push esi
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x56610c]
mov edi, dword [ecx + 8]
test edi, edi
jne 0x408d48
mov dword [esp + 0x14], 0x10
jmp 0x408d78
mov eax, 0x51eb851f
cmp edi, 1
jne 0x408d6a
mov edx, dword [ecx + 4]
shl edx, 4
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
jmp 0x408d78
mov edx, dword [ecx]
shl edx, 4
mul edx
shr edx, 5
mov dword [esp + 0x14], edx
test edi, edi
jne 0x408d83
mov ebx, 0xa0
jmp 0x408db8
cmp edi, 1
jne 0x408da4
mov eax, dword [ecx + 4]
lea edx, [eax + eax*4]
shl edx, 5
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jmp 0x408db8
mov eax, dword [ecx]
lea edx, [eax + eax*4]
shl edx, 5
mov eax, 0x51eb851f
mul edx
mov ebx, edx
shr ebx, 5
test edi, edi
jne 0x408dc1
lea esi, [edi + 0x78]
jmp 0x408e04
cmp edi, 1
jne 0x408de9
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x408e04
mov eax, dword [ecx]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
mul edx
mov esi, edx
shr esi, 5
test edi, edi
jne 0x408e0f
mov edi, 0xc4
jmp 0x408e3f
mov eax, 0x51eb851f
cmp edi, 1
jne 0x408e30
mov ecx, dword [ecx + 4]
imul ecx, ecx, 0xc4
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jmp 0x408e3f
mov ecx, dword [ecx]
imul ecx, ecx, 0xc4
mul ecx
mov edi, edx
shr edi, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push 0x455
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x14]
push 4
push ecx
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x454
push edx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
mov eax, dword [ebx + 4]
push 0x438
push eax
call edi
push 0
push eax
call esi
mov ecx, dword [0x56610c]
mov edi, dword [ecx + 8]
test edi, edi
jne 0x408eaa
mov dword [esp + 0x14], 0x1e
jmp 0x408eeb
cmp edi, 1
jne 0x408ed2
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
jmp 0x408eeb
mov eax, dword [ecx]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov dword [esp + 0x14], edx
test edi, edi
jne 0x408ef9
mov dword [esp + 0x18], 0x78
jmp 0x408f42
cmp edi, 1
jne 0x408f25
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
jmp 0x408f42
mov eax, dword [ecx]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov dword [esp + 0x18], edx
test edi, edi
jne 0x408f4d
mov esi, 0x88
jmp 0x408f90
cmp edi, 1
jne 0x408f75
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 4
add edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x408f90
mov eax, dword [ecx]
mov edx, eax
shl edx, 4
add edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
mul edx
mov esi, edx
shr esi, 5
test edi, edi
jne 0x408f9b
mov edi, 0x69
jmp 0x408fc5
mov eax, 0x51eb851f
cmp edi, 1
jne 0x408fb9
mov ecx, dword [ecx + 4]
imul ecx, ecx, 0x69
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jmp 0x408fc5
mov ecx, dword [ecx]
imul ecx, ecx, 0x69
mul ecx
mov edi, edx
shr edi, 5
mov edx, dword [ebx + 4]
push 1
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 4
push ecx
push edx
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x56610c]
mov edi, dword [ecx + 8]
test edi, edi
jne 0x408fff
mov dword [esp + 0x18], 0x1e
jmp 0x409040
cmp edi, 1
jne 0x409027
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
jmp 0x409040
mov eax, dword [ecx]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov dword [esp + 0x18], edx
test edi, edi
jne 0x40904e
mov dword [esp + 0x14], 0x78
jmp 0x409097
cmp edi, 1
jne 0x40907a
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
jmp 0x409097
mov eax, dword [ecx]
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov dword [esp + 0x14], edx
test edi, edi
jne 0x4090a2
mov esi, 0x88
jmp 0x4090e5
cmp edi, 1
jne 0x4090ca
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 4
add edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x4090e5
mov eax, dword [ecx]
mov edx, eax
shl edx, 4
add edx, eax
add edx, edx
add edx, edx
add edx, edx
mov eax, 0x51eb851f
mul edx
mov esi, edx
shr esi, 5
test edi, edi
jne 0x4090f0
mov edi, 0xeb
jmp 0x409120
mov eax, 0x51eb851f
cmp edi, 1
jne 0x409111
mov ecx, dword [ecx + 4]
imul ecx, ecx, 0xeb
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jmp 0x409120
mov ecx, dword [ecx]
imul ecx, ecx, 0xeb
mul ecx
mov edi, edx
shr edi, 5
mov edx, dword [ebx + 4]
push 2
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 4
push ecx
push edx
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
test byte [0x5667e8], 1
jne 0x40916a
or dword [0x5667e8], 1
push 0x50c340
mov dword [0x5667e4], 0
call fcn.004e413c
add esp, 4
mov eax, dword [ebx + 4]
mov ecx, 0x926
call fcn.004b5140
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, str.button_mid_size.png
call fcn.00401640
lea esi, [esp + 0x1c]
call fcn.004b4880
push 1
push 1
mov dword [esp + 0x50], 0
mov esi, dword [eax]
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 4
push 0x438
push eax
call edi
mov edx, esi
mov ecx, eax
call int.0041cbb0
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, str.button_mid_size.png
call fcn.00401640
lea esi, [esp + 0x1c]
call fcn.004b4880
push 1
push 1
mov dword [esp + 0x50], 1
mov esi, dword [eax]
mov eax, dword [ebx + 4]
push 4
push 1
push eax
call edi
mov edx, esi
mov ecx, eax
call int.0041cbb0
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40924e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, str.button_mid_size.png
call fcn.00401640
lea esi, [esp + 0x1c]
call fcn.004b4880
push 1
push 1
mov dword [esp + 0x50], 2
mov esi, dword [eax]
mov eax, dword [ebx + 4]
push 4
push 2
push eax
call edi
mov edx, esi
mov ecx, eax
call int.0041cbb0
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4092b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 4]
mov eax, 0x438
lea esi, [esp + 0x1c]
call int.0041cad0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0xffffff
push eax
call edx
mov ecx, dword [ebx + 4]
mov eax, 1
lea esi, [esp + 0x1c]
call int.0041cad0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0xffffff
push eax
call edx
mov ecx, dword [ebx + 4]
mov eax, 2
lea esi, [esp + 0x2c]
call int.0041cad0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0xffffff
push eax
call edx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4