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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a6928
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xd4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push edi
push 0xb
push eax
call esi
mov ecx, dword [ebx + 0xd4]
push edi
push edi
push 0x1009
push ecx
call esi
cmp byte [ebx + 0x25c], 0
mov dword [ebx + 0x214], edi
je 0x407fb4
mov edx, dword [ebx + 0x230]
mov eax, dword [edx + 4]
lea esi, [ebx + 0x218]
push eax
mov ecx, esi
call fcn.00473ed0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], edi
mov dword [eax], eax
mov esi, dword [esi + 0x18]
mov dword [esi + 8], esi
mov ecx, dword [0x4d03a8]
sub ecx, dword [0x4d03a4]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
je 0x4089f1
mov ecx, dword [0x4d2064]
lea eax, [ebx + 0xd0]
lea esi, [eax + 0xd8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], eax
mov dword [eax + 0xd0], edi
mov dword [eax + 0xd4], edi
call fcn.0046c650
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
push edi
mov dword [esi + 0xdc], edx
push edi
mov dword [esi + 0xe0], 0x666666
call fcn.00433450
push 4
call fcn.0048b686
add esp, 4
cmp eax, edi
je 0x40803d
lea ecx, [esp + 0x20]
mov dword [eax], ecx
jmp 0x40803f
xor eax, eax
mov dword [esp + 0x20], eax
xor esi, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x180], 1
mov dword [esp + 0x18], edi
cmp dword [esp + 0x14], edi
jbe 0x408126
mov dword [esp + 0x10], edi
mov edi, edi
mov ecx, dword [0x4d03a8]
sub ecx, dword [0x4d03a4]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jae 0x4080a4
mov ecx, dword [0x4d03a4]
mov edx, dword [esp + 0x10]
lea eax, [ecx + edx]
jmp 0x4080a6
xor eax, eax
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x40810e
cmp dword [eax + 8], 0x80
jne 0x40810e
mov edx, dword [esp + 0x2c]
cmp edx, edi
jne 0x4080c3
xor ecx, ecx
jmp 0x4080cc
mov ecx, dword [esp + 0x34]
sub ecx, edx
sar ecx, 2
mov edx, esi
sub edx, dword [esp + 0x2c]
sar edx, 2
cmp edx, ecx
jae 0x4080e4
mov dword [esi], eax
add esi, 4
mov dword [esp + 0x30], esi
jmp 0x40810c
cmp dword [esp + 0x2c], esi
jbe 0x4080ef
call fcn.0048b4bc
mov eax, dword [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x30]
call fcn.004316d0
mov esi, dword [esp + 0x30]
xor edi, edi
mov eax, dword [esp + 0x18]
add dword [esp + 0x10], 0x74
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jb 0x408070
sub esi, dword [esp + 0x2c]
sar esi, 2
cmp esi, edi
jbe 0x4089ba
add dword [ebx + 0x214], esi
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, 0xfffffff5
call fcn.00407db0
mov byte [esp + 0x180], 2
push 0x4c
mov dword [esp + 0x78], edi
call fcn.0048b686
mov esi, eax
add esp, 4
mov dword [esp + 0x40], esi
mov byte [esp + 0x180], 3
cmp esi, edi
je 0x408181
push esi
call fcn.0046ea50
mov dword [esi], vtable.CLfTextWnd.0
jmp 0x408183
xor esi, esi
mov byte [esp + 0x180], 2
push 0x30
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], 0x14
mov dword [esp + 0x84], 7
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], 3
mov dword [esp + 0x98], edi
call fcn.0048b686
mov esi, eax
add esp, 4
cmp esi, edi
je 0x408217
xor eax, eax
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi], vtable.CSomWndTipImpl_class_CLFPanelButtonBase_.0
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esi + 0x2c], eax
jmp 0x408219
xor esi, esi
mov ecx, dword [ebx + 0xd4]
push edi
push edi
push 0x1004
push ecx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], 5
mov dword [esp + 0xb0], 0xb
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], 0x800f
mov dword [esp + 0xc0], 3
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x38]
push 0xfffffffffffffff5
push 2
lea edx, [esp + 0x7c]
push edx
push eax
call fcn.00466bd0
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
push edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov ecx, dword [ebx + 0xd4]
push 0x104b
push ecx
mov dword [esp + 0x5c], 4
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
and eax, dword [esp + 0x6c]
je 0x4082d9
or dword [eax + 0x18], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x78]
push edx
push eax
call fcn.00465db0
lea ecx, [esp + 0x14]
mov esi, 0xfffffff5
add ebx, 0x238
push ecx
mov dword [esp + 0x18], esi
call fcn.0046c230
mov cl, byte [eax]
mov eax, dword [esp + 0x98]
cmp cl, byte [eax + 0x28]
je 0x408327
mov byte [eax + 0x28], cl
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x408327
mov edx, dword [ecx]
push 0
push 0
push 0
push eax
mov eax, dword [edx + 0x28]
call eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], esi
call fcn.0046c230
xor ebx, ebx
cmp byte [eax], bl
je 0x40898d
mov ecx, dword [esp + 0x30]
mov eax, ecx
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
sar eax, 2
mov dword [esp + 0x40], eax
cmp eax, ebx
jbe 0x40898d
mov esi, ebx
jmp 0x40836a
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
xor ebx, ebx
sub ecx, dword [esp + 0x2c]
sar ecx, 2
cmp esi, ecx
jb 0x40837a
call fcn.0048b4bc
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax]
push 0x4c
mov dword [esp + 0x18], ecx
mov dword [esp + 0xb8], ebx
call fcn.0048b686
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4083f8
xor eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], vtable.CSomCheckBox.0
mov dword [esi + 0x38], ebx
mov dword [esi + 0x44], 0x4d2340
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esi + 0x48], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x40], ebx
mov dword [esi], vtable.CLFCheckBox.0
jmp 0x4083fa
xor esi, esi
push 0x4c
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], 5
mov dword [esp + 0xc4], 9
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], 0x8010
mov dword [esp + 0xd4], 2
mov dword [esp + 0xd8], ebx
call fcn.0048b686
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x180], 4
cmp eax, ebx
je 0x408464
push eax
call fcn.0046ea50
jmp 0x408466
xor eax, eax
mov byte [esp + 0x180], 2
mov edi, 3
push 0x50
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], 0xc
mov dword [esp + 0xe4], 8
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf8], 1
call fcn.0048b686
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov byte [esp + 0x180], 5
cmp esi, ebx
je 0x4084ff
push esi
call fcn.0046ea50
mov byte [esp + 0x180], 6
mov dword [esi], vtable.CSomWndTipImpl_class_CSomTextWnd_.0
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esi + 0x4c], eax
jmp 0x408501
xor esi, esi
mov byte [esp + 0x180], 2
push 0x50
mov dword [esp + 0xfc], esi
mov dword [esp + 0x100], 5
mov dword [esp + 0x104], 8
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], edi
mov dword [esp + 0x118], 2
call fcn.0048b686
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov byte [esp + 0x180], 7
cmp esi, ebx
je 0x408595
push esi
call fcn.0046ea50
mov byte [esp + 0x180], 8
mov dword [esi], vtable.CSomWndTipImpl_class_CSomTextWnd_.0
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esi + 0x4c], eax
jmp 0x408597
xor esi, esi
mov byte [esp + 0x180], 2
push 0x4c
mov dword [esp + 0x11c], esi
mov dword [esp + 0x120], 0xc
mov dword [esp + 0x124], 8
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], edi
mov dword [esp + 0x138], edi
call fcn.0048b686
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x180], 9
cmp eax, ebx
je 0x408601
push eax
call fcn.0046ea50
jmp 0x408603
xor eax, eax
mov byte [esp + 0x180], 2
mov esi, 8
push 0x4c
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], 0xc
mov dword [esp + 0x144], esi
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x150], ebx
mov dword [esp + 0x154], edi
mov dword [esp + 0x158], 4
call fcn.0048b686
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x180], 0xa
cmp eax, ebx
je 0x408672
push eax
call fcn.0046ea50
jmp 0x408674
xor eax, eax
mov byte [esp + 0x180], 2
mov ecx, dword [esp + 0x14]
push ecx
push 6
lea edx, [esp + 0xbc]
push edx
push ebx
mov dword [esp + 0x168], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
push ebx
push 0x1004
push ecx
mov dword [esp + 0x178], 0xc
mov dword [esp + 0x17c], esi
mov dword [esp + 0x180], ebx
mov dword [esp + 0x184], ebx
mov dword [esp + 0x188], ebx
mov dword [esp + 0x18c], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x44]
push eax
call fcn.00466bd0
mov edx, dword [esp + 0xb8]
mov eax, dword [edx + 4]
mov ecx, eax
and ecx, 1
je 0x40870b
mov ecx, dword [edx + 0x1c]
and eax, 0xfffffffe
mov dword [edx + 4], eax
cmp ecx, ebx
je 0x40870b
mov eax, dword [ecx]
push ebx
push 1
push ebx
push edx
mov edx, dword [eax + 0x28]
call edx
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
sar eax, 2
cmp esi, eax
jb 0x408723
call fcn.0048b4bc
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + esi*4]
mov eax, dword [edx + 0x14]
push eax
mov eax, dword [esp + 0xdc]
push eax
call fcn.00465db0
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sar ecx, 2
cmp esi, ecx
jb 0x40874f
call fcn.0048b4bc
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + esi*4]
mov eax, dword [eax + 0x1c]
mov edi, dword [esp + 0xf8]
push eax
push edi
call fcn.00465db0
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sar ecx, 2
cmp esi, ecx
jb 0x40877b
call fcn.0048b4bc
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + esi*4]
mov edx, dword [eax + 0x1c]
lea eax, [edi + 0x4c]
cmp edx, ebx
je 0x4087a2
mov ecx, edx
lea edi, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x408791
sub ecx, edi
sar ecx, 1
mov ebx, ecx
push edx
call fcn.0046c7e0
mov ecx, dword [esp + 0x14]
push ecx
mov esi, 0x4d02a0
call fcn.00468700
mov esi, eax
mov eax, dword [esi + 0x6c]
push eax
push 0xfffffffffffffff5
lea edx, [esp + 0x44]
push edx
call fcn.00406370
mov byte [esp + 0x180], 0xb
mov eax, dword [eax]
mov ebx, dword [esp + 0x118]
push eax
push ebx
call fcn.00465db0
mov byte [esp + 0x180], 2
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408809
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi + 0x6c]
push esi
push 0xfffffffffffffff5
lea ecx, [esp + 0x50]
push ecx
call fcn.00406370
mov byte [esp + 0x180], 0xc
mov edx, dword [eax]
lea eax, [ebx + 0x4c]
test edx, edx
jne 0x40882e
xor ecx, ecx
jmp 0x408842
mov ecx, edx
lea edi, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x408833
sub ecx, edi
sar ecx, 1
push edx
mov ebx, ecx
call fcn.0046c7e0
mov byte [esp + 0x180], 2
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408872
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
sar ecx, 2
cmp esi, ecx
jb 0x40888a
call fcn.0048b4bc
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + esi*4]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x138]
push eax
push ecx
call fcn.00465db0
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov bl, 0xd
mov byte [esp + 0x180], bl
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x9cb5
mov byte [esp + 0x184], 0xe
call fcn.0046c4a0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x408907
lea edx, [esp + 0x14]
push edx
mov eax, 0x9cb5
call fcn.0046c580
mov esi, dword [esp + 0x14]
push 0x800e
push esi
lea edi, [esp + 0x18]
mov byte [esp + 0x188], 0xf
call fcn.0046afd0
lea eax, [esi - 0x10]
add esp, 8
mov byte [esp + 0x180], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408944
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x158]
push esi
push ecx
call fcn.00465db0
lea eax, [esi - 0x10]
mov byte [esp + 0x180], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40897a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x40]
jb 0x408360
mov byte [esp + 0x180], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x180], 0xffffffff
cmp dword [esp + 0x2c], edi
je 0x4089d8
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0048b128
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.0048b128
add esp, 4
cmp dword [ebx + 0x214], edi
jne 0x408a8d
mov eax, dword [0x4ce67c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ce67c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
push 0x9d7b
mov dword [esp + 0x184], 0x10
call fcn.0046c4a0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x408a44
lea eax, [esp + 0x1c]
push eax
mov eax, 0x9d7b
call fcn.0046c580
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x180], 0x11
mov ecx, dword [0x4d2064]
push ecx
lea ecx, [ebx + 0xd0]
mov eax, 0x4d264c
call fcn.00430af0
lea eax, [edi - 0x10]
mov dword [esp + 0x180], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408a8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0xd4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0xb
push ecx
call edi
lea esi, [ebx + 0xd0]
push esi
call fcn.0046ca10
cmp byte [ebx + 0x25c], 0
je 0x408ad2
mov edx, dword [ebx + 0xd4]
push 0
push 0
push 0x1014
push edx
call edi
mov byte [ebx + 0x25c], 0
jmp 0x408aed
mov eax, dword [esi + 0xc4]
imul eax, dword [ebx + 0x258]
push eax
mov eax, dword [esi + 4]
push 0
push 0x1014
push eax
call edi
mov ecx, dword [ebx + 0xd4]
push 0x105
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
push ebx
call fcn.00407ca0
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4