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

Disassembly:
sub esp, 0x70
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
je 0x4f06b0
mov eax, dword [esi + 0x60]
cmp eax, edi
je 0x4f02f4
cmp word [eax + 0x12], 0x85
jne 0x4f02f4
mov ecx, dword [eax]
and ecx, 0xf
cmp cl, 1
je 0x4f02f4
mov ebp, dword [eax + 0x50]
mov eax, dword [esi + 0xf4]
lea edx, [esp + 0x48]
mov dword [esp + 0x14], ebp
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
lea eax, [ebp + 0x28]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp]
test ch, 1
jne 0x4f0169
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ebx, dword [sym.imp.USER32.dll_InflateRect]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
push 0xfffffffffffffffe
lea ecx, [esp + 0x2c]
push 0xfffffffffffffffe
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call ebx
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x2c]
lea ecx, [edx + eax]
mov eax, dword [esp + 0x34]
sub eax, edi
cdq
idiv ecx
mov edx, dword [esi + 0x78]
add edx, 0xfffffffc
imul eax, ecx
add eax, edi
cmp eax, edx
jle 0x4f0153
sub eax, ecx
cmp eax, edx
jg 0x4f014d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
jmp 0x4f018d
mov ebx, dword [sym.imp.USER32.dll_InflateRect]
push 0xfffffffffffffffe
lea eax, [esp + 0x1c]
push 0xfffffffffffffffe
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x78]
inc ecx
add eax, 0xfffffffc
cmp ecx, eax
mov dword [esp + 0x24], ecx
jle 0x4f0193
mov ecx, eax
mov dword [esp + 0x24], ecx
mov edx, dword [esi + 0x60]
mov eax, dword [edx]
and eax, 0xf
cmp al, 1
je 0x4f01ae
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
call ebx
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x58]
mov eax, ecx
sub eax, edi
add ebx, edx
cdq
idiv ebx
cmp dword [ebp + 0x40], eax
ja 0x4f01d8
mov eax, dword [ebp]
mov dword [esp + 0x10], 0
test ah, 0x10
je 0x4f01e0
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4f0210
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x12c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
sub eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
mov ebp, dword [sym.imp.USER32.dll_PtInRect]
push edi
lea ecx, [esp + 0x1c]
push ebx
push ecx
call ebp
test eax, eax
je 0x4f0244
mov edx, dword [esi + 0x60]
mov eax, dword [edx + 0x50]
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4f02d7
push edi
lea ecx, [esp + 0x3c]
push ebx
push ecx
call ebp
test eax, eax
je 0x4f02d7
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4f0270
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0xd4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov ebp, dword [esi]
mov edi, dword [eax + 0x54]
push ecx
push edx
push edi
mov ebx, dword [edi + 0x3c]
mov ecx, esi
or ebx, 1
mov dword [edi + 0x3c], ebx
lea ebx, [esi + 0xec]
push ebx
call dword [ebp + 0xa4]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x48]
mov dword [ecx + 0x4c], eax
mov edx, dword [esi + 0x60]
push edx
push ebx
mov ecx, esi
call fcn.004e8fa0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4f06b0
push 1
mov ecx, esi
call dword [ebp + 0xd4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
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.004e9880
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
cmp dword [esi + 0x50], edi
je 0x4f0304
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0xd4]
cmp word [esi + 0x14], di
mov dword [esp + 0x10], edi
jbe 0x4f069d
mov ebp, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x10], edi
mov ecx, dword [esi + 0x3c]
mov edx, dword [esp + 0x10]
push ebp
push ebx
lea eax, [edx + ecx + 0x28]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f0413
mov ecx, dword [esi + 0x3c]
mov edx, dword [esp + 0x10]
lea eax, [edx + ecx]
mov ecx, dword [edx + ecx]
test ecx, 0x10000000
je 0x4f0413
test ecx, 0x8000000
jne 0x4f0413
mov cx, word [eax + 0x12]
cmp cx, 0x80
jne 0x4f039d
mov edx, dword [esi]
push ebp
push ebx
push eax
mov ecx, esi
call dword [edx + 0xbc]
test eax, eax
je 0x4f0413
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + eax]
and edx, 0xf
cmp dl, 7
jne 0x4f0436
jmp 0x4f0413
cmp cx, 0x81
jne 0x4f03bb
mov edx, dword [esi]
push ebp
push ebx
push eax
mov ecx, esi
call dword [edx + 0xc0]
test eax, eax
jne 0x4f0495
jmp 0x4f0413
cmp cx, 0x83
jne 0x4f03d9
mov edx, dword [esi]
push ebp
push ebx
push eax
mov ecx, esi
call dword [edx + 0xc4]
test eax, eax
jne 0x4f04f3
jmp 0x4f0413
cmp cx, 0x84
jne 0x4f03f7
mov edx, dword [esi]
push ebp
push ebx
push eax
mov ecx, esi
call dword [edx + 0xd0]
test eax, eax
jne 0x4f0571
jmp 0x4f0413
cmp cx, 0x85
jne 0x4f0413
mov edx, dword [esi]
push ebp
push ebx
push eax
mov ecx, esi
call dword [edx + 0xc8]
test eax, eax
jne 0x4f05e0
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 0x4f0324
mov dword [esp + 0x10], edi
jmp 0x4f069d
mov dword [esp + 0x10], edi
lea edi, [edi + edi*2]
mov ecx, dword [esp + 0x10]
shl edi, 3
sub edi, ecx
mov ecx, dword [esi + 0x3c]
shl edi, 2
mov edx, dword [edi + ecx + 0x3c]
lea eax, [edi + ecx + 0x3c]
or edx, 1
mov dword [eax], edx
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi]
mov edx, edi
add edx, ecx
mov ecx, dword [esi + 0x68]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x1b0]
mov edx, dword [esi + 0x3c]
push ebp
push ebx
mov ecx, esi
lea eax, [edi + edx]
mov dword [esi + 0x5c], 1
mov dword [esi + 0x60], eax
push eax
lea eax, [esi + 0xec]
push eax
mov eax, dword [esi]
call dword [eax + 0x74]
jmp 0x4f05be
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
lea edi, [edi + edi*2]
shl edi, 3
sub edi, eax
shl edi, 2
mov ecx, dword [edi + edx + 0x3c]
lea eax, [edi + edx + 0x3c]
or ecx, 1
mov dword [eax], ecx
mov edx, dword [esi + 0x3c]
mov eax, dword [esi]
mov ecx, edi
add ecx, edx
mov edx, dword [esi + 0x68]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x1b0]
mov eax, dword [esi + 0x3c]
push ebp
add eax, edi
push ebx
lea ecx, [esi + 0xec]
mov dword [esi + 0x60], eax
push eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esi + 0x5c], 1
call dword [eax + 0x80]
jmp 0x4f054f
mov dword [esp + 0x10], edi
lea edi, [edi + edi*2]
mov eax, dword [esp + 0x10]
shl edi, 3
sub edi, eax
mov eax, dword [esi + 0x3c]
shl edi, 2
mov ecx, dword [edi + eax + 0x3c]
lea eax, [edi + eax + 0x3c]
or ecx, 1
mov dword [eax], ecx
mov edx, dword [esi + 0x3c]
mov eax, dword [esi]
mov ecx, edi
add ecx, edx
mov edx, dword [esi + 0x68]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x1b0]
mov eax, dword [esi + 0x3c]
push ebp
add eax, edi
push ebx
lea ecx, [esi + 0xec]
mov dword [esi + 0x60], eax
push eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esi + 0x5c], 1
call dword [eax + 0x8c]
test eax, eax
jne 0x4f069d
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov eax, dword [edi + edx + 0x3c]
lea edi, [edi + edx + 0x3c]
and al, 0xfe
mov dword [edi], eax
jmp 0x4f069d
mov dword [esp + 0x10], edi
lea edi, [edi + edi*2]
mov eax, dword [esp + 0x10]
shl edi, 3
sub edi, eax
mov eax, dword [esi + 0x3c]
shl edi, 2
mov ecx, dword [edi + eax + 0x3c]
lea eax, [edi + eax + 0x3c]
or ecx, 1
mov dword [eax], ecx
mov ecx, dword [esi + 0x3c]
add ecx, edi
mov dword [esi + 0x5c], 1
mov dword [esi + 0x60], ecx
xor eax, eax
test byte [ecx], 1
je 0x4f05be
mov edx, dword [esi]
push ebp
push ebx
lea eax, [esi + 0xec]
push ecx
push eax
mov ecx, esi
call dword [edx + 0xa4]
test eax, eax
jne 0x4f069d
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov eax, dword [edi + ecx + 0x3c]
lea edi, [edi + ecx + 0x3c]
and al, 0xfe
mov dword [edi], eax
jmp 0x4f069d
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
lea edi, [edi + edi*2]
shl edi, 3
sub edi, eax
shl edi, 2
mov ecx, dword [edi + edx + 0x3c]
lea eax, [edi + edx + 0x3c]
or ecx, 1
mov dword [eax], ecx
mov edx, dword [esi + 0x3c]
mov eax, dword [esi]
mov ecx, edi
add ecx, edx
mov edx, dword [esi + 0x68]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x1b0]
mov eax, dword [esi + 0x3c]
push ebp
add eax, edi
push ebx
lea ecx, [esi + 0xec]
mov dword [esi + 0x60], eax
push eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esi + 0x5c], 1
call dword [eax + 0x98]
xor ecx, ecx
cmp eax, ecx
jne 0x4f0658
mov edx, dword [esi + 0x3c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], ecx
lea eax, [edi + edx + 0x3c]
mov edx, dword [edi + edx + 0x3c]
and edx, 0xfffffffe
mov dword [eax], edx
mov eax, dword [esi + 0x3c]
add eax, edi
mov edi, dword [eax + 0x54]
mov edx, dword [eax + 0x50]
cmp edi, ecx
mov dword [esp + 0x14], edx
je 0x4f069d
push ebp
push ebx
mov ebx, dword [esi]
push edi
mov ecx, esi
call dword [ebx + 0xc0]
test eax, eax
je 0x4f069d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4f069d
test dword [eax], 0x10000000
je 0x4f069d
mov ecx, dword [edi + 0x40]
mov edx, dword [ecx]
mov ecx, esi
push edx
push 0xffffffffffffffff
push eax
call dword [ebx + 0x128]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4f06b0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0xd4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8