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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bfe75
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x62ece4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
push eax
call fcn.00486129
lea ecx, [esp + 0x58]
push ecx
mov ebx, eax
call fcn.00409a70
mov dword [esp + 0x98], 0
mov ebx, dword [esi + 0x10]
add esi, 0x1c
push esi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
test bl, 0x10
je 0x40a708
mov byte [esp + 0x13], 1
test bl, 1
je 0x40a70d
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x5c]
mov ecx, dword [edi + 0x20]
push 0
push eax
push 0x14
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 0x64], 0
je 0x40a72f
cmp dword [edi + 0x74], 0
jne 0x40a72f
or ebx, 1
test bl, 0x10
je 0x40a737
or ebx, 0x20
cmp dword [edi + 0x84], 0
lea ecx, [edi + 0x84]
jne 0x40a754
mov eax, dword [edi + 0x20]
push 0x605348
push eax
call fcn.00405e20
cmp dword [edi + 0x88], 0
lea ecx, [edi + 0x88]
jne 0x40a771
mov eax, dword [edi + 0x20]
push str.EDIT
push eax
call fcn.00405e20
cmp dword [edi + 0x8c], 0
lea ecx, [edi + 0x8c]
jne 0x40a78e
mov eax, dword [edi + 0x20]
push str.COMBOBOX
push eax
call fcn.00405e20
call fcn.00406080
test eax, eax
je 0x40a88d
mov eax, ebx
and eax, 4
mov dword [esp + 0x14], eax
je 0x40a7d8
cmp dword [edi + 0x74], 0
je 0x40a7d8
push 0xbac7c9
push 0xbac7c9
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x64]
call fcn.00486f8b
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
jmp 0x40a935
xor esi, esi
test bl, 1
jne 0x40a7e4
cmp dword [edi + 0x64], esi
je 0x40a7e9
mov esi, 3
cmp dword [esp + 0x14], 0
je 0x40a7f3
or esi, 4
test bl, 0x40
jne 0x40a80e
cmp dword [edi + 0x6c], 0
jne 0x40a80e
test bl, 0x20
je 0x40a811
cmp dword [edi + 0x74], 0
jne 0x40a817
or esi, 5
jmp 0x40a811
or esi, 2
cmp dword [edi + 0x74], 0
je 0x40a850
mov edx, dword [esp + 0x5c]
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
push 1
push edx
lea ecx, [edi + 0x88]
call fcn.00405f10
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x28]
push eax
mov ecx, eax
push ecx
push esi
push edx
lea eax, [edi + 0x88]
push eax
call fcn.00405f90
jmp 0x40a935
mov ecx, dword [esp + 0x5c]
push 0
lea eax, [esp + 0x2c]
push eax
push esi
push 1
push ecx
lea ecx, [edi + 0x84]
call fcn.00405f10
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x28]
push edx
mov eax, edx
push eax
push esi
push ecx
lea eax, [edi + 0x84]
push eax
call fcn.00405f90
inc dword [esp + 0x30]
jmp 0x40a935
cmp dword [edi + 0x74], 0
je 0x40a8ee
mov eax, ebx
and eax, 4
mov dword [esp + 0x14], eax
jne 0x40a8b5
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x60]
call fcn.00486bc4
mov ecx, dword [esp + 0x5c]
push 0xf
push 0xa
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
push 0x2e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x2d
mov esi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg esi
push esi
neg eax
push eax
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
jmp 0x40a935
mov esi, ebx
and esi, 1
mov eax, 0x2010
je 0x40a8ff
mov eax, 0x2210
mov ecx, ebx
and ecx, 4
mov dword [esp + 0x14], ecx
je 0x40a90f
or eax, 0x100
mov ecx, dword [esp + 0x5c]
push eax
push 4
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawFrameControl]
test esi, esi
je 0x40a935
push 1
push 1
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [edi + 0x74], 0
je 0x40aa25
call fcn.00406080
test eax, eax
je 0x40a9b7
xor esi, esi
test bl, 1
je 0x40a954
mov esi, 3
cmp dword [esp + 0x14], 0
je 0x40a95e
or esi, 4
test bl, 0x40
jne 0x40a969
cmp dword [edi + 0x6c], 0
je 0x40a96c
or esi, 2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
mov ebx, eax
push edx
sub ebx, ecx
push eax
lea ebx, [ebx + edx + 2]
push ebx
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x5c]
push 0
lea ecx, [esp + 0x3c]
push ecx
push esi
push 1
push edx
lea ecx, [edi + 0x8c]
call fcn.00405f10
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
sub dword [esp + 0x30], eax
jmp 0x40aa25
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
push edx
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x34]
add eax, dword [esp + 0x34]
push edx
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x14]
and bl, 1
movzx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, 0x4200
shl edx, 6
or ecx, edx
mov esi, 1
or ecx, esi
push ecx
mov ecx, dword [esp + 0x60]
push 3
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
add dword [esp + 0x28], esi
add dword [esp + 0x2c], esi
sub dword [esp + 0x30], eax
sub dword [esp + 0x34], esi
call fcn.00406080
test eax, eax
je 0x40aa68
cmp dword [edi + 0x74], 0
je 0x40aa68
cmp dword [esp + 0x14], 0
je 0x40aa53
push 0xeaf4f5
push 0xeaf4f5
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x64]
call fcn.00486f8b
dec dword [esp + 0x30]
mov eax, 2
add dword [esp + 0x28], eax
add dword [esp + 0x2c], eax
sub dword [esp + 0x34], eax
cmp byte [esp + 0x13], 0
je 0x40ab1a
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
dec eax
cmp dword [edi + 0x74], 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
je 0x40ab0a
push 0xd
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, eax
or dl, 0xff
mov ecx, ebx
shr ecx, 0x10
sub dl, cl
shr eax, 8
or cl, 0xff
sub cl, al
movzx esi, dl
movzx edx, cl
or al, 0xff
shl esi, 8
or esi, edx
sub al, bl
push 0xffffffffffffffff
movzx ecx, al
push 0xffffffffffffffff
lea edx, [esp + 0x50]
shl esi, 8
push edx
or esi, ecx
call dword [sym.imp.USER32.dll_InflateRect]
push ebx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x60]
call fcn.00486bc4
push 1
push 1
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
push esi
push esi
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x64]
call fcn.00486f8b
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x2e
call esi
push 0x2d
mov ebx, eax
call esi
neg ebx
push ebx
neg eax
push eax
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
dec dword [esp + 0x30]
cmp dword [edi + 0x74], 0
jne 0x40abf4
push 0x2d
call esi
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x30]
sar ecx, 1
sub eax, ecx
sub eax, 4
mov dword [esp + 0x38], eax
add eax, 4
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
inc eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
je 0x40ab94
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x40ab96
xor eax, eax
push eax
lea ecx, [esp + 0x3c]
lea esi, [esp + 0x5c]
call fcn.0040af50
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 4
push 0x2d
call esi
mov ecx, dword [esp + 0x5c]
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
sub edx, eax
mov eax, dword [edi + 0x70]
sub edx, 2
neg eax
sbb eax, eax
and eax, 0x4000
or eax, 4
push eax
push 6
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.USER32.dll_DrawEdge]
push 0x2d
call esi
add eax, eax
or edx, 0xffffffff
sub edx, eax
add dword [esp + 0x30], edx
cmp dword [esp + 0x14], 0
jne 0x40af20
cmp dword [edi + 0x74], 0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], edx
je 0x40ac2d
sub eax, ecx
add eax, edx
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x54]
cmp eax, 0xff000000
jne 0x40ac3a
mov eax, dword [edi + 0x58]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x60]
call fcn.00486bc4
cmp byte [esp + 0x13], 0
je 0x40ac5b
cmp dword [edi + 0x74], 0
mov eax, 0xe
jne 0x40ac60
mov eax, 8
push eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov edx, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_FrameRect]
cmp dword [edi + 0x74], 0
je 0x40af20
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
add eax, 2
add dword [esp + 0x28], eax
mov eax, 1
sub dword [esp + 0x2c], eax
add dword [esp + 0x34], eax
call fcn.0047b8ad
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40acb8
push 0x80004005
call fcn.004072a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x98], 1
cmp dword [edi + 0x54], 0xff000000
jne 0x40aceb
lea ecx, [edi + 0x5c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00408700
jmp 0x40ae8c
push 1
push 2
lea edx, [esp + 0x2c]
lea esi, [edi + 0x7c]
push edx
mov ecx, esi
call fcn.00407b80
mov ebx, eax
push 1
push 1
lea eax, [esp + 0x28]
push eax
mov ecx, esi
mov byte [esp + 0xa4], 2
call fcn.00407b80
mov dword [esp + 0x18], eax
push 1
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov byte [esp + 0xa0], 3
call fcn.0040cf80
mov byte [esp + 0x98], 4
movzx edx, byte [edi + 0x56]
mov ecx, dword [ebx]
push edx
movzx edx, byte [edi + 0x55]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ecx]
movzx ecx, byte [edi + 0x54]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x2c]
push str._s:_d__s:_d__s:_d
push eax
call fcn.00407370
mov byte [esp + 0xb8], 3
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40adb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ade0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x635324]
xor esi, esi
test ecx, ecx
jle 0x40ae8c
mov edx, dword [edi + 0x54]
mov eax, 0x63a328
cmp dword [eax], edx
je 0x40ae0b
inc esi
add eax, 0x204
cmp esi, ecx
jl 0x40adf8
jmp 0x40ae8c
cmp dword [edi + 0x78], 0
je 0x40ae76
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004087a0
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x24], ebx
imul esi, esi, 0x204
push ebx
add esi, 0x63a32c
push esi
lea ecx, [esp + 0x1c]
push str._s___s_
push ecx
mov byte [esp + 0xa8], 5
call fcn.00407370
lea eax, [ebx - 0x10]
add esp, 0x10
mov byte [esp + 0x98], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ae8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ae8c
imul esi, esi, 0x204
add esi, 0x63a32c
push esi
lea ecx, [esp + 0x18]
call fcn.00408c10
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.004863fb
push eax
lea ecx, [esp + 0x5c]
call fcn.0048654a
push 1
lea ecx, [esp + 0x5c]
mov edi, eax
call fcn.0048590f
cmp byte [esp + 0x13], 0
je 0x40aed2
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x5c]
call fcn.004859a5
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
push 0x8824
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0x68]
push esi
lea ecx, [esp + 0x68]
call edx
push edi
lea ecx, [esp + 0x5c]
call fcn.0048654a
lea eax, [esi - 0x10]
mov byte [esp + 0x98], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x9c], 0xffffffff
call fcn.00409b80
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4