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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45b558
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push edi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
cmp dword [esi + 0xac], 0
je 0x404d63
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [esp + 0x34]
mov ecx, dword [esi + 0xac]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x48]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x50]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x24]
call eax
mov edi, dword [esp + 0x34]
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x48]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x50]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x24]
call eax
mov edi, dword [esp + 0x34]
mov ecx, dword [esi + 0xb4]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x48]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x50]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x24]
call eax
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add edx, 0x1c
add edi, 0xf6
lea ecx, [edx + 0x50]
lea eax, [edi + 0x14]
mov dword [esp + 0x30], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0xb8]
mov ebx, dword [ecx]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
call eax
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
add edx, 0xb8
lea eax, [edx + 0x14]
lea ecx, [edi + 0x24b]
sub esp, 0x10
mov dword [esp + 0x40], eax
mov eax, esp
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0xc0]
mov ebx, dword [ecx]
mov dword [eax], edi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
call eax
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add edx, 0x5a
add edi, 0xf6
lea ecx, [edx + 0x78]
lea eax, [edi + 0x14]
mov dword [esp + 0x30], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0xec]
mov ebx, dword [ecx]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
call eax
mov ebx, dword [esp + 0x38]
mov eax, dword [esi + 0xbc]
mov edi, dword [esp + 0x34]
add ebx, 0x112
lea edx, [ebx + 0x22]
mov dword [esp + 0x30], edx
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
sub esp, 0x10
mov eax, esp
add edi, 0x1b
mov dword [eax], edi
lea ecx, [edi + 0x1bb]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0xbc]
call edx
lea ecx, [esi + 0x170]
test ecx, ecx
je 0x404866
cmp dword [ecx + 0x20], 0
je 0x404866
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add ebx, 7
push 1
sub edx, 7
add edi, 0xa
sub eax, 5
sub edx, ebx
push edx
sub eax, edi
push eax
push ebx
push edi
call fcn.00426556
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
add edx, 0x1d6
lea eax, [edx + 0x5c]
mov dword [esp + 0x2c], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
add edi, 0x112
lea ecx, [edi + 0x22]
mov dword [eax + 4], edi
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0xc8]
mov ebx, dword [ecx]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
call eax
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add edx, 0x1d8
add edi, 0x186
lea ecx, [edx + 0x5a]
lea eax, [edi + 0x20]
mov dword [esp + 0x30], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0xcc]
mov ebx, dword [ecx]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
call eax
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add edx, 0xc2
add edi, 0x12a
lea ecx, [edx + 0xd9]
lea eax, [edi + 0x3e]
mov dword [esp + 0x30], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0xd8]
mov ebx, dword [ecx]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
call eax
mov ebx, dword [esp + 0x38]
mov eax, dword [esi + 0xdc]
mov edi, dword [esp + 0x34]
add ebx, 0x50
lea edx, [ebx + 0x78]
mov dword [esp + 0x30], edx
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
sub esp, 0x10
mov eax, esp
add edi, 0x91
mov dword [eax], edi
lea ecx, [edi + 0x140]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0xdc]
call edx
mov eax, dword [esi + 0xe0]
mov edx, dword [eax]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edx + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0xe0]
call edx
mov eax, dword [esi + 0xe4]
mov edx, dword [eax]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edx + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0xe4]
call edx
mov ecx, dword [esi + 0xe8]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x3c]
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov edi, dword [esp + 0x40]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x24]
call eax
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add edx, 0xffffffbc
inc edi
lea ecx, [edx + 0x21]
lea eax, [edi + 0x23]
mov dword [esp + 0x30], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0xd4]
mov ebx, dword [ecx]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
call eax
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add edx, 0xffffffde
inc edi
lea ecx, [edx + 0x21]
lea eax, [edi + 0x23]
mov dword [esp + 0x30], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0xd0]
mov ebx, dword [ecx]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
call eax
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
add edi, 0x1c
add edx, 0x131
mov ecx, dword [esp + 0x3c]
lea eax, [edx + 0x10]
mov dword [esp + 0x30], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], edx
add ecx, 0xffffffe8
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0xf0]
mov ebx, dword [ecx]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
call eax
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add edx, 0x1a
add edi, 0x11e
lea ecx, [edx + 0x210]
lea eax, [edi + 0x14]
mov dword [esp + 0x30], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0xc4]
mov ebx, dword [ecx]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
call eax
mov eax, dword [esi + 0x78]
xor edx, edx
xor ecx, ecx
xor edi, edi
cmp eax, edx
mov dword [esp + 0x10], ecx
jle 0x404d00
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edx
jmp 0x404b34
mov ecx, dword [esp + 0x10]
test edx, edx
jl 0x404d75
cmp edi, dword [esi + 0x8c]
jge 0x404d75
mov eax, dword [esi + 0x88]
add eax, edx
mov eax, dword [eax + 0x18]
sub eax, 1
je 0x404c28
sub eax, 2
jne 0x404ce6
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
imul eax, eax, 0x19
sub ecx, edx
imul ecx, ecx, 0x96
add ecx, 0x5d
mov ebx, 0x1a0
sub ebx, eax
cmp edi, dword [esi + 0x78]
lea eax, [ecx + 0xf]
mov dword [esp + 0x2c], eax
jge 0x404d75
mov eax, dword [esi + 0x74]
add eax, dword [esp + 0xc]
sub esp, 0x10
mov eax, dword [eax]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
lea ecx, [ebx + 0xf]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x28]
call edx
mov ecx, dword [esp + 0x2c]
add ecx, 4
sub ebx, 4
cmp edi, dword [esi + 0x78]
lea eax, [ecx + 0xe6]
lea edx, [ebx + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
jge 0x404d75
mov eax, dword [esi + 0x74]
add eax, dword [esp + 0xc]
sub esp, 0x10
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x28]
call edx
inc dword [esp + 0x10]
jmp 0x404ce6
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
imul eax, eax, 0x19
mov edx, ecx
mov ecx, edi
sub ecx, edx
lea ecx, [ecx + ecx*4]
shl ecx, 5
add eax, 0x146
add ecx, 0x1e
cmp edi, dword [esi + 0x78]
mov ebx, eax
lea eax, [ecx + 0xf]
mov dword [esp + 0x2c], eax
jge 0x404d75
mov eax, dword [esi + 0x74]
add eax, dword [esp + 0xc]
sub esp, 0x10
mov eax, dword [eax]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
lea ecx, [ebx + 0xf]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x28]
call edx
mov ecx, dword [esp + 0x2c]
add ecx, 4
sub ebx, 4
cmp edi, dword [esi + 0x78]
lea eax, [ecx + 0xe6]
lea edx, [ebx + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
jge 0x404d75
mov eax, dword [esi + 0x74]
add eax, dword [esp + 0xc]
sub esp, 0x10
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x28]
call edx
mov edx, dword [esp + 0x14]
add dword [esp + 0xc], 0x10
inc edi
add edx, 0x2c
cmp edi, dword [esi + 0x78]
mov dword [esp + 0x14], edx
jl 0x404b30
xor edx, edx
mov edi, vtable.CRgn.0
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
push 4
push 4
inc eax
push eax
inc ecx
push ecx
push edx
push edx
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push eax
lea ecx, [esp + 0x20]
call fcn.0042d335
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x20]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.00401620
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004240a0
int3