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

Disassembly:
push 0xffffffffffffffff
push 0x4db053
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0xa4]
xor ebp, ebp
cmp dword [esp + 0xb8], ebp
jne 0x4ae9c4
cmp dword [esp + 0xbc], ebp
jne 0x4ae9c4
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
push eax
mov eax, dword [esp + 0xac]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
mov dword [esp + 0x3c], 1
call dword [sym.imp.gdi32.dll_Rectangle]
lea eax, [edi + 0xc]
push eax
push esi
lea ecx, [esp + 0x60]
call fcn.00469860
push 0xfffffffffffffffc
push 0xfffffffffffffffa
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0xa8], ebp
call dword [sym.imp.user32.dll_InflateRect]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x138]
call fcn.00472d70
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov ebx, eax
mov eax, dword [esp + 0xb0]
sub eax, ecx
mov dword [esp + 0x18], ecx
push 0x4f1f2c
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], eax
call fcn.0040b7d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x40]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [fcn.00520f0c]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ae8ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, ebp
mov dword [esp + 0x24], ebp
jle 0x4aee3c
jmp 0x4ae8c0
test ebp, ebp
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x138]
jl 0x4aef44
cmp ebp, dword [eax + 0x28]
jge 0x4aef44
mov edx, dword [eax + 0x24]
mov ebx, dword [edx + ebp*4]
lea eax, [edx + ebp*4]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.004acd30
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
mov byte [esp + 0x9c], 1
je 0x4aed47
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp - 0xc]
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [esi + 8]
push ebp
push eax
call dword [fcn.00520f0c]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
lea edx, [ecx + edi]
cmp edx, eax
jl 0x4aec0e
mov ebp, dword [ebp - 0xc]
sub eax, edi
lea edx, [ebp - 1]
imul eax, edx
cdq
idiv ecx
cmp eax, 1
mov ecx, eax
jge 0x4ae956
cmp edi, dword [esp + 0xa8]
je 0x4aed3c
test eax, eax
jl 0x4ae9a2
test ecx, ecx
jl 0x4aeead
cmp ecx, ebp
jg 0x4aeead
mov edx, dword [esp + 0x14]
movzx edx, word [edx + ecx*2]
movzx edi, dx
cmp di, 0x20
je 0x4ae9a2
cmp ecx, ebp
jg 0x4aeead
movzx edi, dx
cmp di, 0x2c
je 0x4ae9a2
cmp ecx, ebp
jg 0x4aeead
movzx edx, dx
cmp dx, 0x2d
je 0x4ae9a2
sub ecx, 1
jns 0x4ae95a
test ecx, ecx
jg 0x4ae9cf
mov ecx, dword [esp + 0xa8]
cmp dword [esp + 0x18], ecx
je 0x4ae9cd
mov eax, dword [esp + 0x44]
add dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
jmp 0x4aebe6
mov dword [esp + 0x28], ebp
jmp 0x4ae808
mov ecx, eax
lea edi, [ecx + 1]
push edi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00408550
push edi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 2
call fcn.0043716c
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [esi + 8]
push ecx
push eax
mov byte [esp + 0xac], 3
call dword [fcn.00520f0c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
lea eax, [edx + ecx]
mov edx, dword [esp + 0xb4]
cmp eax, edx
mov dword [esp + 0x1c], eax
mov edi, eax
jl 0x4aea36
mov edi, edx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0xb0]
add edx, eax
cmp edx, ebp
jl 0x4aea4d
mov edx, ebp
cmp dword [esp + 0x28], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edi
je 0x4aeb06
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edi
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0x3c]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
mov edx, dword [esi]
push 0x820
lea ebp, [esp + 0x68]
push ebp
push eax
mov eax, dword [edx + 0x68]
push ecx
mov ecx, esi
call eax
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx + 0x34]
mov edx, dword [ebx + 0x28]
cmp edx, dword [eax + 0x148]
jne 0x4aeb29
test eax, eax
jne 0x4aeaba
xor ebp, ebp
jmp 0x4aeabd
mov ebp, dword [eax + 0x20]
call dword [sym.imp.user32.dll_GetFocus]
cmp eax, ebp
jne 0x4aeb29
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x60]
add eax, 0x5c
cmp ecx, 0xffffffff
jne 0x4aead9
mov eax, dword [eax]
jmp 0x4aeadb
mov eax, ecx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push 0
mov ecx, esi
call eax
mov edx, dword [esi + 4]
add dword [esp + 0x70], 1
lea ecx, [esp + 0x64]
push ecx
push edx
call dword [sym.imp.user32.dll_DrawFocusRect]
jmp 0x4aeb29
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb8]
push eax
push ecx
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
jne 0x4aeeb7
mov eax, dword [esp + 0xa8]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
lea edi, [eax - 0x10]
add ebp, 0xfffffff0
cmp edi, ebp
mov dword [esp + 0x1c], ecx
je 0x4aeb9d
cmp dword [ebp + 0xc], 0
jl 0x4aeb8f
mov edx, dword [edi]
cmp edx, dword [ebp]
jne 0x4aeb8f
push edi
call fcn.0040b760
mov dword [esp + 0x40], eax
add esp, 4
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4aeb82
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x3c]
add ecx, 0x10
mov dword [esp + 0x14], ecx
jmp 0x4aeb9d
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040bd90
mov byte [esp + 0x9c], 2
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4aebbe
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x9c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aebe6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0xb4]
jge 0x4aef13
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
jne 0x4ae905
mov ebp, dword [esp + 0x24]
jmp 0x4aed43
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
add eax, edx
mov edx, dword [esp + 0xb4]
cmp eax, edx
jge 0x4aec25
mov edx, eax
mov eax, dword [esp + 0xb0]
add ecx, edi
cmp ecx, eax
mov dword [esp + 0x3c], ecx
jl 0x4aec38
mov ecx, eax
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
je 0x4aed07
mov dword [ebx + 0x2c], edi
mov edi, dword [esp + 0x20]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], edx
mov ecx, dword [edi + 0x3c]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, esi
call edx
mov eax, dword [ebp - 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x820
lea ecx, [esp + 0x78]
push ecx
push eax
push ebp
mov ecx, esi
call edx
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebx + 0x28]
cmp ecx, dword [eax + 0x148]
jne 0x4aed2e
test eax, eax
jne 0x4aecac
xor ebx, ebx
jmp 0x4aecaf
mov ebx, dword [eax + 0x20]
call dword [sym.imp.user32.dll_GetFocus]
cmp eax, ebx
jne 0x4aed2e
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x60]
add eax, 0x5c
cmp ecx, 0xffffffff
jne 0x4aeccb
mov eax, dword [eax]
jmp 0x4aeccd
mov eax, ecx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push 0
mov ecx, esi
call eax
mov edx, dword [esi + 4]
add dword [esp + 0x80], 1
lea ecx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.user32.dll_DrawFocusRect]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jmp 0x4aed47
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb8]
push eax
push ecx
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
jne 0x4aee6f
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jmp 0x4aed47
mov ebp, dword [esp + 0x30]
add ebp, 0xffffffff
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp ebx, dword [esp + 0xb4]
jge 0x4aef13
mov ecx, dword [esp + 0x30]
add ecx, 0xffffffff
cmp ebp, ecx
je 0x4aef13
cmp dword [esp + 0x28], 0
je 0x4aedfe
lea edx, [edi + 0x14]
push edx
lea ecx, [esp + 0x5c]
call fcn.004698d0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x68]
add eax, 0x64
cmp ecx, 0xffffffff
jne 0x4aed91
mov eax, dword [eax]
jmp 0x4aed93
mov eax, ecx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x44]
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0xb4]
cmp eax, ecx
jl 0x4aedb1
mov eax, ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x820
mov dword [esp + 0x94], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x88], ecx
push eax
add ecx, 8
push 1
mov dword [esp + 0x98], ecx
push 0x4f1f28
mov ecx, esi
mov dword [esp + 0x98], ebx
call edx
lea eax, [edi + 0xc]
push eax
lea ecx, [esp + 0x5c]
call fcn.004698d0
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 8
add eax, 0xfffffff0
mov byte [esp + 0x9c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aee2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
cmp ebp, dword [esp + 0x30]
mov dword [esp + 0x24], ebp
jl 0x4ae8c0
lea ecx, [esp + 0x58]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00469290
or eax, 0xffffffff
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 0x1c
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x9c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aee93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00469290
mov eax, dword [esp + 0x24]
jmp 0x4aee53
push 0x80070057
call fcn.0040b720
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x9c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aeedf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x9c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aef07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x4aee72
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x9c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aee3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4aee3c
call fcn.0041d387
int3