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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460da5
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x47c008]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
mov eax, dword [0x47c008]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [edi + 0x10]
call dword [eax + 0x28]
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [edi + 0x10]
mov ecx, edi
call fcn.0040d130
mov eax, dword [edi]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, edi
call dword [eax + 0x90]
push eax
mov ecx, edi
mov dword [esp + 0x434], 0
call fcn.0040d450
cmp dword [esp + 0xa0], 8
jb 0x409e5c
push dword [esp + 0x8c]
call fcn.0044d735
add esp, 4
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov byte [esp + 0x1f8], 1
mov dword [esp + 0x20c], 0
mov dword [esp + 0x430], 1
lea ecx, [esp + 0x8c]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x94]
mov esi, eax
lea eax, [esp + 0xa4]
mov byte [esp + 0x430], 2
push eax
mov ecx, edi
call fcn.0040d410
push esi
mov edx, eax
mov byte [esp + 0x434], 3
lea ecx, [esp + 0x78]
call fcn.0040acd0
add esp, 4
cmp dword [esp + 0xb8], 8
jb 0x409ef6
push dword [esp + 0xa4]
call fcn.0044d735
add esp, 4
xor eax, eax
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], 0
mov word [esp + 0xa4], ax
mov byte [esp + 0x430], 6
cmp dword [esp + 0xa0], 8
jb 0x409f37
push dword [esp + 0x8c]
call fcn.0044d735
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 0x40b180
mov dword [esp + 0x60], eax
lea edx, [esp + 0x14]
movq xmm0, qword [esp + 0x5c]
lea ecx, [esp + 0x3c]
sub esp, 0x10
mov word [esp + 0x9c], ax
mov eax, esp
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], 0
mov dword [esp + 0x24], edi
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.0040ad30
add esp, 0x10
push 0
push 0
push edi
sub esp, 0x18
mov ebx, esp
mov dword [esp + 0x38], ebx
mov dword [ebx + 0x10], 0
push 0x30
mov byte [esp + 0x458], 8
call fcn.0044d73a
mov esi, eax
add esp, 4
test esi, esi
jne 0x409fbf
call fcn.0044d612
lea eax, [esp + 0x60]
mov dword [esi], 0x46c75c
lea ecx, [esi + 8]
push eax
call fcn.0040ae90
mov dword [ebx + 0x10], esi
lea ecx, [esp + 0x98]
mov byte [esp + 0x454], 7
cmp dword [esp + 0xac], 8
cmovae ecx, dword [esp + 0x98]
push ecx
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0xe4]
call fcn.00417fb0
or ebx, 0xffffffff
test eax, eax
jne 0x40a06f
push 0x206
push eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x21e]
push eax
call fcn.00453020
add esp, 0xc
lea eax, [esp + 0x74]
cmp dword [esp + 0x88], 8
cmovae eax, dword [esp + 0x74]
push eax
lea eax, [esp + 0x218]
push 0x46c678
push eax
call fcn.0040adf0
add esp, 0xc
lea eax, [esp + 0x214]
push 0x10
push str.Duilib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
or esi, ebx
jmp 0x40a582
push eax
lea ecx, [edi + 0x1fc]
call fcn.00417af0
mov esi, eax
mov ecx, edi
push esi
call fcn.0040d1d0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x24]
cmp dword [esi + 0x28], 0xfffffffe
je 0x40a098
cmp dword [esi + 0x2c], 0xfffffffe
jne 0x40a0fc
sub esp, 8
lea ecx, [esp + 0x1c]
mov eax, esp
push ecx
mov dword [eax], 0x1869f
mov ecx, esi
mov dword [eax + 4], 0x1869f
mov eax, dword [esi]
call dword [eax + 0x18]
mov edx, dword [esp + 0x14]
cmp edx, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
cmovl edx, dword [esi + 0x30]
mov dword [esp + 0x14], edx
test eax, eax
js 0x40a0d5
cmp edx, eax
cmovg edx, eax
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 0x34]
push 0
cmovl ecx, dword [esi + 0x34]
cmp ecx, dword [esi + 0x3c]
cmovg ecx, dword [esi + 0x3c]
push ecx
push edx
push 0
push 0
push dword [edi + 0x10]
mov dword [esp + 0x30], ecx
call dword [sym.imp.USER32.dll_MoveWindow]
push str.closebtn
lea ecx, [esp + 0x60]
call fcn.00401b00
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
call fcn.0040f640
cmp dword [esp + 0x70], 8
mov esi, eax
jb 0x40a12b
push dword [esp + 0x5c]
call fcn.0044d735
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
test esi, esi
je 0x40a21d
push eax
push 0x47e49c
push 0x47e480
push eax
push esi
call fcn.0044ec35
add esp, 4
mov dword [esp + 0x6c], 0x40aa00
mov ecx, esp
mov dword [esp + 0x70], 0
movq xmm0, qword [esp + 0x6c]
lea edx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x24], edi
movq qword [ecx], xmm0
mov dword [ecx + 8], 0
lea ecx, [esp + 0x2c]
call fcn.0040ad30
add esp, 0x10
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x434], 9
call fcn.0040ae10
lea eax, [esp + 0x14]
mov byte [esp + 0x430], 0xa
push eax
lea ecx, [esi + 0x6c]
mov dword [esp + 0x18], 0x29
call fcn.0040b7d0
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.0040bb60
mov byte [esp + 0x430], 9
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x40a1fd
mov edx, dword [ecx]
lea eax, [esp + 0x5c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esp + 0x6c], 0
mov byte [esp + 0x430], 7
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40a21d
lea eax, [ecx + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x40a21d
mov eax, dword [ecx]
call dword [eax + 4]
push str.minbtn
lea ecx, [esp + 0x60]
call fcn.00401b00
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
call fcn.0040f640
cmp dword [esp + 0x70], 8
mov esi, eax
jb 0x40a24c
push dword [esp + 0x5c]
call fcn.0044d735
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
test esi, esi
je 0x40a33e
push eax
push 0x47e49c
push 0x47e480
push eax
push esi
call fcn.0044ec35
add esp, 4
mov dword [esp + 0x6c], 0x40aa00
mov ecx, esp
mov dword [esp + 0x70], 0
movq xmm0, qword [esp + 0x6c]
lea edx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x24], edi
movq qword [ecx], xmm0
mov dword [ecx + 8], 0
lea ecx, [esp + 0x2c]
call fcn.0040ad30
add esp, 0x10
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x434], 0xb
call fcn.0040ae10
lea eax, [esp + 0x14]
mov byte [esp + 0x430], 0xc
push eax
lea ecx, [esi + 0x6c]
mov dword [esp + 0x18], 0x29
call fcn.0040b7d0
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.0040bb60
mov byte [esp + 0x430], 0xb
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x40a31e
mov edx, dword [ecx]
lea eax, [esp + 0x5c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esp + 0x6c], 0
mov byte [esp + 0x430], 7
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40a33e
lea eax, [ecx + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x40a33e
mov eax, dword [ecx]
call dword [eax + 4]
push str.maxbtn
lea ecx, [esp + 0x60]
call fcn.00401b00
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
call fcn.0040f640
cmp dword [esp + 0x70], 8
mov esi, eax
jb 0x40a36d
push dword [esp + 0x5c]
call fcn.0044d735
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
test esi, esi
je 0x40a45f
push eax
push 0x47e49c
push 0x47e480
push eax
push esi
call fcn.0044ec35
add esp, 4
mov dword [esp + 0x6c], 0x40aa00
mov ecx, esp
mov dword [esp + 0x70], 0
movq xmm0, qword [esp + 0x6c]
lea edx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x24], edi
movq qword [ecx], xmm0
mov dword [ecx + 8], 0
lea ecx, [esp + 0x2c]
call fcn.0040ad30
add esp, 0x10
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x434], 0xd
call fcn.0040ae10
lea eax, [esp + 0x14]
mov byte [esp + 0x430], 0xe
push eax
lea ecx, [esi + 0x6c]
mov dword [esp + 0x18], 0x29
call fcn.0040b7d0
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.0040bb60
mov byte [esp + 0x430], 0xd
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x40a43f
mov edx, dword [ecx]
lea eax, [esp + 0x5c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esp + 0x6c], 0
mov byte [esp + 0x430], 7
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40a45f
lea eax, [ecx + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x40a45f
mov eax, dword [ecx]
call dword [eax + 4]
push str.restorebtn
lea ecx, [esp + 0x60]
call fcn.00401b00
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
call fcn.0040f640
cmp dword [esp + 0x70], 8
mov esi, eax
jb 0x40a48e
push dword [esp + 0x5c]
call fcn.0044d735
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
test esi, esi
je 0x40a580
push eax
push 0x47e49c
push 0x47e480
push eax
push esi
call fcn.0044ec35
add esp, 4
mov dword [esp + 0x6c], 0x40aa00
mov ecx, esp
mov dword [esp + 0x70], 0
movq xmm0, qword [esp + 0x6c]
lea edx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x24], edi
movq qword [ecx], xmm0
mov dword [ecx + 8], 0
lea ecx, [esp + 0x2c]
call fcn.0040ad30
add esp, 0x10
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x434], 0xf
call fcn.0040ae10
lea eax, [esp + 0x14]
mov byte [esp + 0x430], 0x10
push eax
lea ecx, [esi + 0x6c]
mov dword [esp + 0x18], 0x29
call fcn.0040b7d0
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.0040bb60
mov byte [esp + 0x430], 0xf
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x40a560
mov edx, dword [ecx]
lea eax, [esp + 0x5c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esp + 0x6c], 0
mov byte [esp + 0x430], 7
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40a580
lea eax, [ecx + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x40a580
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov byte [esp + 0x430], 6
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x40a5a1
lea eax, [ecx + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x40a5a1
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0x88], 8
jb 0x40a5b7
push dword [esp + 0x74]
call fcn.0044d735
add esp, 4
xor eax, eax
mov dword [esp + 0x88], 7
lea ecx, [esp + 0xbc]
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
call fcn.0040a610
mov eax, esi
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0044d726
mov esp, ebp
pop ebp
ret 0x10