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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
je 0x4ed8f5
mov eax, dword [esi + 0x60]
cmp eax, edi
je 0x4ed55d
cmp word [eax + 0x12], 0x85
jne 0x4ed55d
mov ecx, dword [eax]
and ecx, 0xf
cmp cl, 1
je 0x4ed55d
mov ebx, dword [eax + 0x50]
mov eax, dword [esi + 0xf4]
lea edx, [esp + 0x44]
mov dword [esp + 0x10], ebx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
lea eax, [ebx + 0x28]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x1c], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx]
test ch, 1
jne 0x4ed3fa
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ebp, dword [sym.imp.USER32.dll_InflateRect]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
push 0xfffffffffffffffe
lea ecx, [esp + 0x28]
push 0xfffffffffffffffe
push ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call ebp
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x28]
lea ecx, [edx + eax]
mov eax, dword [esp + 0x30]
sub eax, edi
cdq
idiv ecx
mov edx, dword [esi + 0x78]
add edx, 0xfffffffc
imul eax, ecx
add eax, edi
cmp eax, edx
jle 0x4ed3e4
neg ecx
add eax, ecx
cmp eax, edx
jg 0x4ed3de
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
jmp 0x4ed41e
mov ebp, dword [sym.imp.USER32.dll_InflateRect]
push 0xfffffffffffffffe
lea eax, [esp + 0x18]
push 0xfffffffffffffffe
push eax
call ebp
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x78]
inc ecx
add eax, 0xfffffffc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jle 0x4ed424
mov ecx, eax
mov dword [esp + 0x20], ecx
mov edx, dword [esi + 0x60]
mov eax, dword [edx]
and eax, 0xf
cmp al, 1
je 0x4ed43f
push 1
lea ecx, [esp + 0x18]
push 1
push ecx
call ebp
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
mov eax, ecx
sub eax, edi
mov edi, dword [esp + 0x44]
add edi, edx
cdq
idiv edi
cmp dword [ebx + 0x40], eax
ja 0x4ed464
mov eax, dword [ebx]
test ah, 0x10
jne 0x4ed464
xor edi, edi
jmp 0x4ed495
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x12c]
mov dword [esp + 0x3c], eax
sub eax, ecx
mov edi, 1
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x84]
mov ebx, dword [esp + 0x80]
push ebp
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4ed4c7
mov ecx, dword [esi + 0x60]
pop edi
mov edx, dword [ecx + 0x50]
mov dword [esi + 0x60], edx
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8
test edi, edi
je 0x4ed540
push ebp
lea eax, [esp + 0x38]
push ebx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4ed540
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4ed4ef
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0xd4]
mov eax, dword [esp + 0x10]
push ebp
lea ebx, [esi + 0xec]
mov edi, dword [eax + 0x54]
mov eax, dword [esp + 0x84]
push eax
push edi
mov ecx, dword [edi + 0x3c]
push ebx
or ecx, 1
mov dword [edi + 0x3c], ecx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xa4]
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x48]
mov dword [edx + 0x4c], ecx
mov eax, dword [esi + 0x60]
push eax
push ebx
mov ecx, esi
call fcn.004e6340
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4ed8f5
jmp 0x4ed8e9
mov eax, dword [esi + 0x60]
xor ecx, ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x5c], ecx
push eax
mov ecx, esi
call fcn.004e6c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8
cmp dword [esi + 0x50], edi
je 0x4ed56d
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0xd4]
cmp word [esi + 0x14], di
jbe 0x4ed8e2
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x10], edi
mov ecx, dword [esi + 0x3c]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x80]
push ebx
lea eax, [edx + ecx + 0x28]
push ebp
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4ed676
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [eax]
test ecx, 0x10000000
je 0x4ed676
test ecx, 0x8000000
jne 0x4ed676
mov cx, word [eax + 0x12]
cmp cx, 0x80
jne 0x4ed600
mov edx, dword [esi]
push ebx
push ebp
push eax
mov ecx, esi
call dword [edx + 0xbc]
test eax, eax
je 0x4ed676
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + eax]
and edx, 0xf
cmp dl, 7
jne 0x4ed695
jmp 0x4ed676
cmp cx, 0x81
jne 0x4ed61e
mov edx, dword [esi]
push ebx
push ebp
push eax
mov ecx, esi
call dword [edx + 0xc0]
test eax, eax
jne 0x4ed713
jmp 0x4ed676
cmp cx, 0x83
jne 0x4ed63c
mov edx, dword [esi]
push ebx
push ebp
push eax
mov ecx, esi
call dword [edx + 0xc4]
test eax, eax
jne 0x4ed773
jmp 0x4ed676
cmp cx, 0x84
jne 0x4ed65a
mov edx, dword [esi]
push ebx
push ebp
push eax
mov ecx, esi
call dword [edx + 0xd0]
test eax, eax
jne 0x4ed7d3
jmp 0x4ed676
cmp cx, 0x85
jne 0x4ed676
mov edx, dword [esi]
push ebx
push ebp
push eax
mov ecx, esi
call dword [edx + 0xc8]
test eax, eax
jne 0x4ed826
mov edx, dword [esp + 0x10]
xor eax, eax
mov ax, word [esi + 0x14]
inc edi
add edx, 0x5c
cmp edi, eax
mov dword [esp + 0x10], edx
jl 0x4ed582
jmp 0x4ed8e2
mov ecx, dword [esi + 0x3c]
lea ebp, [edi + edi*2]
shl ebp, 3
sub ebp, edi
shl ebp, 2
lea eax, [ecx + ebp + 0x3c]
mov ecx, dword [ecx + ebp + 0x3c]
or ecx, 1
mov dword [eax], ecx
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x68]
mov edx, dword [esi]
mov eax, ebp
add eax, edi
push eax
push ecx
mov ecx, esi
call dword [edx + 0x1b0]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x80]
push ebx
push ecx
lea eax, [edx + ebp]
mov edx, dword [esi]
mov dword [esi + 0x60], eax
push eax
lea eax, [esi + 0xec]
mov ecx, esi
push eax
mov dword [esi + 0x5c], 1
call dword [edx + 0x74]
test eax, eax
jne 0x4ed8e2
mov ecx, dword [esi + 0x3c]
xor eax, eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov eax, dword [ecx + ebp + 0x3c]
lea ebp, [ecx + ebp + 0x3c]
and al, 0xfe
mov dword [ebp], eax
jmp 0x4ed8e2
mov edx, dword [esi + 0x3c]
lea ebp, [edi + edi*2]
shl ebp, 3
sub ebp, edi
shl ebp, 2
mov ecx, dword [edx + ebp + 0x3c]
lea eax, [edx + ebp + 0x3c]
or ecx, 1
mov dword [eax], ecx
mov edi, dword [esi + 0x3c]
mov edx, dword [esi + 0x68]
mov eax, dword [esi]
mov ecx, ebp
add ecx, edi
push ecx
push edx
mov ecx, esi
call dword [eax + 0x1b0]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esi]
add eax, ebp
push ebx
push ecx
mov dword [esi + 0x60], eax
push eax
lea eax, [esi + 0xec]
mov ecx, esi
push eax
mov dword [esi + 0x5c], 1
call dword [edx + 0x80]
jmp 0x4ed6ee
mov edx, dword [esi + 0x3c]
lea ebp, [edi + edi*2]
shl ebp, 3
sub ebp, edi
shl ebp, 2
mov ecx, dword [edx + ebp + 0x3c]
lea eax, [edx + ebp + 0x3c]
or ecx, 1
mov dword [eax], ecx
mov edi, dword [esi + 0x3c]
mov edx, dword [esi + 0x68]
mov eax, dword [esi]
mov ecx, ebp
add ecx, edi
push ecx
push edx
mov ecx, esi
call dword [eax + 0x1b0]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esi]
add eax, ebp
push ebx
push ecx
mov dword [esi + 0x60], eax
push eax
lea eax, [esi + 0xec]
mov ecx, esi
push eax
mov dword [esi + 0x5c], 1
call dword [edx + 0x8c]
jmp 0x4ed6ee
mov edx, dword [esi + 0x3c]
lea ebp, [edi + edi*2]
shl ebp, 3
sub ebp, edi
shl ebp, 2
lea eax, [edx + ebp + 0x3c]
mov edx, dword [edx + ebp + 0x3c]
or edx, 1
mov dword [eax], edx
mov eax, dword [esi + 0x3c]
add eax, ebp
mov dword [esi + 0x5c], 1
mov dword [esi + 0x60], eax
test byte [eax], 1
je 0x4ed6f6
mov ecx, dword [esp + 0x80]
mov edx, dword [esi]
push ebx
push ecx
push eax
lea eax, [esi + 0xec]
push eax
mov ecx, esi
call dword [edx + 0xa4]
jmp 0x4ed6ee
mov edx, dword [esi + 0x3c]
lea ebp, [edi + edi*2]
shl ebp, 3
sub ebp, edi
shl ebp, 2
mov ecx, dword [edx + ebp + 0x3c]
lea eax, [edx + ebp + 0x3c]
or ecx, 1
mov dword [eax], ecx
mov edi, dword [esi + 0x3c]
mov edx, dword [esi + 0x68]
mov eax, dword [esi]
mov ecx, ebp
add ecx, edi
push ecx
push edx
mov ecx, esi
call dword [eax + 0x1b0]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esi]
add eax, ebp
push ebx
push ecx
mov dword [esi + 0x60], eax
push eax
lea eax, [esi + 0xec]
mov ecx, esi
push eax
mov dword [esi + 0x5c], 1
call dword [edx + 0x98]
test eax, eax
jne 0x4ed89b
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
lea eax, [ecx + ebp + 0x3c]
mov ecx, dword [ecx + ebp + 0x3c]
and ecx, 0xfffffffe
mov dword [eax], ecx
mov edx, dword [esi + 0x3c]
add ebp, edx
mov edi, dword [ebp + 0x54]
mov ebp, dword [ebp + 0x50]
test edi, edi
je 0x4ed8e2
mov ecx, dword [esp + 0x80]
mov eax, dword [esi]
push ebx
push ecx
push edi
mov ecx, esi
call dword [eax + 0xc0]
test eax, eax
je 0x4ed8e2
test ebp, ebp
je 0x4ed8e2
test dword [ebp], 0x10000000
je 0x4ed8e2
mov eax, dword [edi + 0x40]
mov edx, dword [esi]
mov ecx, dword [eax]
push ecx
push 0xffffffffffffffff
push ebp
mov ecx, esi
call dword [edx + 0x128]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4ed8f5
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0xd4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8