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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc4
mov esi, eax
mov ax, word [esi + 0x20]
and ax, word [0x4ea584]
mov dx, word [0x4ea588]
cmp dx, ax
jne 0x4ea579
mov eax, dword [esi + 0x3c]
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, dword [esi + 0x38]
xor edx, edx
xor eax, eax
call fcn.0040fa54
push 0xfffffffffffffffb
push 0xfffffffffffffffb
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_InflateRect
push 2
call sub.user32.dll_GetSystemMetrics
mov ebx, eax
push 0x14
call sub.user32.dll_GetSystemMetrics
push esi
lea edi, [esi + 0x20c]
lea esi, [esp + 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
lea edx, [esi + 0x20c]
mov ecx, dword [edx + 8]
sub ecx, ebx
mov dword [edx], ecx
mov ecx, dword [edx + 4]
add ecx, eax
mov dword [edx + 0xc], ecx
push esi
lea edi, [esi + 0x220]
lea esi, [esp + 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
lea edx, [esi + 0x220]
mov ecx, dword [edx + 8]
sub ecx, ebx
mov dword [edx], ecx
mov ecx, dword [edx + 0xc]
sub ecx, eax
mov dword [edx + 4], ecx
cmp byte [esi + 0x266], 1
jne 0x4ea2eb
cmp dword [esi + 0x278], 0
je 0x4ea2eb
mov eax, dword [esi + 0x278]
mov dword [esi + 0x200], eax
jmp 0x4ea2f7
mov eax, dword [esi + 0x27c]
mov dword [esi + 0x200], eax
mov eax, dword [esi + 0x200]
test eax, eax
je 0x4ea313
mov ebx, dword [eax + 0x28]
add ebx, 4
mov eax, dword [eax + 0x24]
add eax, 4
mov dword [esp + 4], eax
jmp 0x4ea329
xor eax, eax
mov al, byte [esi + 0x266]
mov ebx, dword [eax*4 + 0x5aa3d0]
add ebx, 4
mov dword [esp + 4], ebx
mov al, byte [esi + 0x266]
test al, al
jne 0x4ea34b
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub edi, edx
sub edi, ebx
sar edi, 1
jns 0x4ea346
adc edi, 0
mov dword [esp], edx
jmp 0x4ea357
mov edi, 6
lea edx, [ebx + edi + 5]
mov dword [esp], edx
test byte [esi + 0x264], 0x20
setne dl
and edx, 0x7f
mov ebp, dword [edx*4 + 0x5aa3e0]
and eax, 0x7f
mov eax, dword [eax*4 + 0x5aa3d8]
or eax, 0x40
or ebp, eax
test byte [esi + 0x264], 1
setne al
and eax, 0x7f
or ebp, dword [eax*4 + 0x5aa3e8]
mov dword [esi + 0x204], ebp
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + edi]
xor edx, edx
mov eax, edi
call fcn.0040fa54
push 0
lea eax, [esp + 0x30]
push eax
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [esp + 8]
call fcn.0040fa54
mov eax, dword [esi + 0x240]
call fcn.004112b0
mov ebp, eax
dec ebp
test ebp, ebp
jl 0x4ea4e3
inc ebp
xor edi, edi
cmp byte [esi + 0x266], 0
jne 0x4ea419
mov eax, dword [esp + 0x38]
add eax, 0xa
mov dword [esp + 0x20], eax
mov edx, eax
add edx, dword [esp + 4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edx
mov eax, dword [esp]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
jmp 0x4ea45a
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
call fcn.004e7da4
mov ebx, eax
add ebx, 0xa
mov dword [esp + 0x20], ebx
add ebx, dword [esp + 4]
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x204]
or eax, 0x400
push eax
push 0
push 0
lea ecx, [esp + 0x38]
mov edx, edi
mov eax, esi
mov bx, 0xffb5
call fcn.004031d0
cmp byte [esi + 0x266], 0
jne 0x4ea4aa
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
cmp eax, edx
jle 0x4ea4aa
push 0
sub eax, dword [esp + 0x10]
sub eax, edx
sar eax, 1
jns 0x4ea49f
adc eax, 0
push eax
lea eax, [esp + 0x34]
push eax
call sub.user32.dll_OffsetRect
mov edx, edi
mov eax, dword [esi + 0x240]
call fcn.004ea778
push esi
push edi
lea edi, [eax + 0xc]
lea esi, [esp + 0x24]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
lea edi, [eax + 0x1c]
lea esi, [esp + 0x34]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
inc edi
dec ebp
jne 0x4ea3da
mov ebx, dword [esi + 0x234]
test ebx, ebx
jle 0x4ea56b
mov eax, dword [esi + 0x240]
call fcn.004112b0
cmp ebx, eax
jge 0x4ea563
mov edx, dword [esi + 0x234]
mov eax, dword [esi + 0x240]
call fcn.004ea778
mov edx, 0xa
sub edx, dword [eax + 0x10]
mov dword [esp + 8], edx
mov eax, dword [esi + 0x240]
call fcn.004112b0
mov ebp, eax
dec ebp
test ebp, ebp
jl 0x4ea56b
inc ebp
xor edi, edi
mov edx, edi
mov eax, dword [esi + 0x240]
call fcn.004ea778
mov ebx, eax
mov eax, dword [esp + 8]
push eax
push 0
lea eax, [ebx + 0xc]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [esp + 8]
push eax
push 0
lea eax, [ebx + 0x1c]
push eax
call sub.user32.dll_OffsetRect
inc edi
dec ebp
jne 0x4ea52e
jmp 0x4ea56b
xor eax, eax
mov dword [esi + 0x234], eax
mov eax, esi
call fcn.004ea088
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x78]
add esp, 0x3c
pop ebp
pop edi
pop esi
pop ebx
ret