Function at 0x409150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x416096
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0x87
mov esi, ecx
ja 0x4093cb
je 0x409363
lea eax, [edi - 7]
cmp eax, 0x2a
ja case.0x40919e.9
movzx eax, byte [eax + 0x409718]
jmp dword [eax*4 + 0x4096f8]
lea ebx, [esi + 0x24]
mov ecx, ebx
call fcn.004089d0
test eax, eax
jne 0x40926a
call fcn.00404b80
cmp dword [eax + 0x30], 2
jne 0x40922e
call fcn.00404b80
cmp dword [eax + 0x24], 4
ja 0x40922e
xor eax, eax
mov dword [esp + 0x70], 0x154
mov dword [esp + 0x74], 0
mov ecx, 0x53
lea edi, [esp + 0x78]
push eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x74]
push ecx
push 0x154
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x40926a
lea edx, [esp + 0x188]
mov ecx, ebx
push edx
call fcn.00408d80
mov ecx, ebx
call fcn.00408e20
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.00406210
mov eax, dword [eax + 0x1c]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.00408e10
add esp, 4
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.00408db0
test eax, eax
je 0x40926a
lea edx, [esp + 0x34]
mov ecx, ebx
push edx
call fcn.00408d80
mov ecx, ebx
call fcn.00408e20
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
test eax, eax
je case.0x40919e.9
push eax
call fcn.00408e10
add esp, 4
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.00408db0
test eax, eax
je case.0x40919e.9
lea edx, [esp + 0x34]
push edx
lea ecx, [esi + 0x24]
call fcn.00408d80
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004060b0
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004060b0
mov edx, dword [esi + 0x1c]
push 1
push 0
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, edi
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [esi + 0x3c]
or ebx, 1
push 1
mov dword [esi + 0x3c], ebx
push 0
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x409438
mov ecx, esi
call fcn.00402490
cmp dword [ebp + 0xc], eax
je case.0x40919e.10
and dword [esi + 0x3c], 0xfffffff4
call fcn.00408e70
cmp eax, esi
jne case.0x40919e.10
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x409438
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push 0x87
mov ecx, esi
call fcn.004060b0
mov ecx, dword [esi + 0x64]
sub ecx, 4
je 0x409389
sub ecx, 3
je 0x4093c4
sub ecx, 2
jne 0x40938c
or eax, 0x40
mov ecx, dword [esi + 0x5c]
test ecx, ecx
jne 0x40939e
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x40943a
mov ecx, dword [esi + 0x60]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff0
add ecx, 0x20
or eax, ecx
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x100
jmp 0x40938c
cmp edi, 0x202
ja 0x409672
je case.0x40919e.31
mov eax, edi
sub eax, 0xf4
je 0x4095ca
sub eax, 0x10c
je 0x409451
dec eax
jne case.0x40919e.9
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x1c]
push 1
and eax, 0xfffffffb
push 0
or eax, 0xa
push ecx
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00406190
mov eax, dword [esi + 0x1c]
add esp, 4
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push eax
call fcn.00406190
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x10]
movzx ebx, di
shr edi, 0x10
mov dword [esp + 0x28], 0x417b58
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
mov eax, dword [esi + 0x3c]
test al, 8
mov dword [esp + 0x1d4], 0
je 0x4094d3
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00402270
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
call fcn.00408e50
test eax, eax
mov eax, dword [esi + 0x3c]
je 0x4094b8
test al, 2
jne 0x4095b7
or eax, 2
mov dword [esi + 0x3c], eax
jmp 0x4095a9
test al, 2
je 0x4095b7
mov edx, dword [esi + 0x1c]
push 1
and eax, 0xfffffffd
push 0
mov dword [esi + 0x3c], eax
push edx
jmp 0x4095b1
test al, 0x12
jne 0x409592
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00402270
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x1d8], 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
call fcn.00408e50
test eax, eax
mov al, byte [esi + 0x3c]
je 0x40954d
mov ebx, 4
test bl, al
jne 0x409577
mov ecx, esi
call fcn.00408e80
mov edi, dword [esi + 0x3c]
mov edx, dword [esi + 0x1c]
push 1
push 0
or edi, ebx
push edx
mov dword [esi + 0x3c], edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0x4173d4
mov dword [esp + 0x1d4], 0xffffffff
jmp case.0x40919e.9
test al, 4
je 0x409577
call fcn.00408e70
cmp eax, esi
jne 0x409560
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ebx, dword [esi + 0x3c]
mov eax, dword [esi + 0x1c]
push 1
push 0
and ebx, 0xfffffffb
push eax
mov dword [esi + 0x3c], ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0x4173d4
mov dword [esp + 0x1d4], 0xffffffff
jmp case.0x40919e.9
test al, 4
je 0x4095b7
call fcn.00408e70
cmp eax, esi
jne 0x4095a5
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [esi + 0x3c], 0xfffffffb
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1d4], 0xffffffff
jmp case.0x40919e.9
mov edi, dword [ebp + 0xc]
mov eax, edi
and eax, 0x1f
cmp eax, 1
jne 0x4095dc
mov dword [esi + 0x60], eax
jmp 0x4095e3
test eax, eax
jne 0x4095e3
mov dword [esi + 0x60], eax
mov edx, dword [esi + 0x1c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x10]
push eax
and edi, 0xffffffeb
or edi, 0xb
push edi
push 0xf4
mov ecx, esi
call fcn.00402490
push eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00406190
add esp, 4
cmp eax, esi
jne 0x40963f
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov edx, dword [esi + 0x3c]
and edx, 0xfffffff3
mov eax, edx
test al, 2
push 1
mov dword [esi + 0x3c], edx
push 0
je 0x409322
mov ecx, dword [esi + 0x1c]
and eax, 0xfffffffd
push ecx
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x68]
jmp 0x409438
mov eax, edi
sub eax, 0x203
je 0x4093f8
sub eax, 0x12
je 0x4096d2
sub eax, 0x105
jne case.0x40919e.9
mov ecx, 0x41fa50
call fcn.004090e0
test eax, eax
je case.0x40919e.9
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4096b3
push eax
mov ecx, 0x41fa50
call fcn.00408fd0
push str.BUTTON
mov ecx, esi
call fcn.00402490
push eax
mov ecx, 0x41fa50
call fcn.00409000
mov dword [esi + 0x58], eax
jmp 0x409438
mov eax, dword [esi + 0x1c]
cmp dword [ebp + 0x10], eax
je 0x409438
mov edi, dword [esi + 0x3c]
push 1
push 0
and edi, 0xfffffff3
push eax
mov dword [esi + 0x3c], edi
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x409438